1.查出该字段的约束名称 SELECT c.name FROM sysconstraints a INNER JOIN syscolumns b on a.colid=b.colid INNER JOIN sysobjects c on a.constid=c.id WHERE a.id=object_id('TClass') AND b.name='PhoneIsOpen' 2.删除该约束 ALTER TABLE TClass DROP CONSTRAINT DF__TClass__Phone…