2005及以后版本

select ROW_NUMBER()Over(ORDER BY UserID)  as rowId,UserID,UserName from  Users

 

2000版本

select    identity(int,1,1)   as   rowId, *   into   #tem  from  Users

select *   from   #tem 

drop   table   #tem

相关文章:

  • 2022-12-23
  • 2021-09-01
  • 2022-12-23
  • 2021-06-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
  • 2022-02-02
  • 2022-12-23
  • 2022-03-04
相关资源
相似解决方案