Add Columns

suggest change
ALTER TABLE Employees
ADD StartingDate date NOT NULL DEFAULT GetDate(),
    DateOfBirth date NULL

The statement above adds StartingDate, which cannot be NULL and defaults to the current date, and DateOfBirth, which can be NULL, to the Employees table. GetDate() is SQL Server syntax, not portable SQL.

Feedback about page:

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



Table Of Contents