alter table kop drop Constrai sytime 好像不行,报错:没有这个约束

解决方案 »

  1.   

    你可能誤會我的意思了。
    alter table yourtable drop CONSTRAINT your_constraint_name
    alter table yourtalbe drop column  yourfield
      

  2.   


    先:
    select name from sysobjects 
    where xtype = 'D' and parent_obj = object_id('TableName');
    找到TableName上的约束名字.然后:
    alter table TableName drop 找到的约束名字./***************************************************/
    铁诺出手,不同凡响.
    /***************************************************/