我想将新列添加到已有数据的现有表中。 列应该不为NULL。 因为这个,我想设置一个默认值。但是当我做它抛出以下异常: “附近有语法错误为'”for'SQL Server'附近的语法不正确
ALTER TABLE Semester ADD SIDNew uniqueidentifier NOT NULL
CONSTRAINT DF_SIDNew DEFAULT '00000000-0000-0000-0000-000000000000' FOR SIDNew
我已经有了一看How to set a default value for an existing column 和Incorrect syntax near the keyword 'FOR'但没有人帮助我。