添加列

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

上面的语句将添加名为 StartingDate 的列,它不能为 NULL,默认值为当前日期,DateOfBirth 在 Employees 表中可以为 NULL。