MS-SQL应对主键重复生成增长ID

Select identity(int,1,1) as iid,* into tmpTableName from TableName
Select * from tmpTableName

drop table tmpTableName

posted @ 2010-11-24 20:07  南阳·源  阅读(208)  评论(0编辑  收藏  举报