Okay, let's explain
DEFAULT clause allows us to assign a default value to a column.
DEFAULT is defined for a column during table creation, and the database architect decides whether or not a given column has a default value. The user only needs to know that a default value is defined for a particular column.
Technically, the default value is a constraint that says that if there is no value added to this column during an
UPDATE operation, the specified default value will be used.
In our database, the
author table has default values for the following columns:
photo (default value of
is_active (default value of
post table has a default value for