如何通过SQL语句,将字段中的自动增量属性去除!!

alter table tablename add column1 int(类型)
go

update tablename
set column1 =column0(自动增长的字段)
go

alter table tablename drop COLUMN column0
go

exec sp_rename 'tablename.column1','column0','COLUMN'
go

Published At
Categories with 数据库类
Tagged with
comments powered by Disqus