create table tb ( productid int identity primary key ....... )
set identity_insert 新的表 on insert 新的表(字段....) select (字段.....) from 旧的表 --把旧表数据复制到新表 最后删除旧表 把新表名称改掉 set identity_insert 新的表 off
28,391
社区成员
357,060
社区内容
加载中
试试用AI创作助手写篇文章吧