SQL | DEFAULT Constraint
This constraint specifies a default value for the column when no value is specified by the user for all new records.
IDENTITY and timestamp columns aren’t associated with the default constraint.
Add Default Constraing in New Table
We created the City, DateOfBirth, and Salary columns with the Default Constraint.
Now
If, while inserting the data into the Employee table, if the user does
not specify the values for City, DateOfBirth, and Salary columns, then
the default values we specified here are going to be stored in the store
City, DateOfBirth, and Salary columns.
Add Default Constraint in Existing Table
Drop/Remove Default Constraint