使用sql语句删除标识列属性

alter   table   a   add   xxx   int   

update   a   set   xxx=id   

alter   table   a   drop   column   id   

exec   sp_rename   'a.xxx',   'id',   'column'  

注:在查询分析器按F1,查找Alter Table,里面有全部的列语法及例子

相关文章: