Sql 实现自动添加行数标记

select  IDENTITY(int,1,1) as NameID,*  into #t  from MissionAssignView
select * from #t order by NameID
drop table #t

posted @ 2005-03-09 14:00  jhtchina  阅读(1462)  评论(0编辑  收藏  举报