Add Constraint

suggest change
ALTER TABLE Employees
ADD CONSTRAINT DefaultSalary DEFAULT ((100)) FOR [Salary]

This adds a constraint called DefaultSalary which specifies a default of 100 for the Salary column.

A constraint can be added at the table level.

Types of constraints

To learn more about constraints, see the Oracle documentation.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


ALTER TABLE:
*Add Constraint

Table Of Contents