怎么删除一个有默认值得列 alert table1 drop column1 其中column1 有默认值删除失败,应该怎么写哪 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 alert table table1 drop column column1 ALTER TABLE [TABLENAME] DROP COLUMN [COLUMNNAME] alter table table1drop constraint 約束名alter table table1drop column column1 alert table 表名 drop column 字段名 --改alter table 表名 drop column 字段名 在对象浏览器里找到列名 然后查看约束 如果不想用语法删可以直接右键删除默认约束如果使用语法使用 sp_helpconstraint 表 可以查看表约束名alter table 表 drop constraint 约束名称alter table 表 drop column 字段 alter table 表名 drop constraint 约束名alter table 表名 drop column 列名 这为兄弟,删除一个列之前必须检查该列上是否有约束~删除约束,再删除列。查看一张表的约束:exec sp_helpconstraint 表名如果有约束则先删除约束alter table 表名 drop constraint 约束名接着删除列alter table 表名 drop column 列名 这个SQL语句错在哪了? 怎样运行多条sql语句? 关于行列转换的问题 100分求解:为什么我的SQL SERVER 2000服务器通过互联网连不上? sql server中对视图更新的限制, 数据库中关系的建立? 请问一下怎么样把mc sql数据库转换成access的?谢谢 一个比较开动脑子sql,请大家帮忙,感谢。 奇怪的问题。。。 有关于insert的一个问题?在线等候 SQL2000触发器问题 导入问题
alert table table1 drop column column1
drop constraint 約束名alter table table1
drop column column1
alter table 表名 drop column 字段名
如果使用语法
使用 sp_helpconstraint 表 可以查看表约束名alter table 表 drop constraint 约束名称
alter table 表 drop column 字段
alter table 表名 drop column 列名
alter table 表名 drop constraint 约束名接着删除列
alter table 表名 drop column 列名