Add Columns
suggest changeALTER 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.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents