摘要: IF EXISTS (SELECT * FROM sys.all_objects WHERE type_desc= N'主键名')begin --删除主键alter table表名 drop constraint 主键名alter table表名 add constraint主键名 primary key (字段名)end 阅读全文
posted @ 2014-01-14 17:10 I是初学者 阅读(4584) 评论(1) 推荐(0) 编辑