你可能誤會我的意思了。 alter table yourtable drop CONSTRAINT your_constraint_name alter table yourtalbe drop column yourfield
先: select name from sysobjects where xtype = 'D' and parent_obj = object_id('TableName'); 找到TableName上的约束名字.然后: alter table TableName drop 找到的约束名字./***************************************************/ 铁诺出手,不同凡响. /***************************************************/
alter table yourtable drop CONSTRAINT your_constraint_name
alter table yourtalbe drop column yourfield
先:
select name from sysobjects
where xtype = 'D' and parent_obj = object_id('TableName');
找到TableName上的约束名字.然后:
alter table TableName drop 找到的约束名字./***************************************************/
铁诺出手,不同凡响.
/***************************************************/