select 
ROW_NUMBER() over( order by sort_id asc) as rows,* 
into #tmp_tb
from tb_district

其中sort_id为您原表的排序列。

tb_district为要操作的表。

 

相关文章:

  • 2022-12-23
  • 2022-02-23
  • 2021-11-15
  • 2021-10-24
  • 2022-03-05
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-12
  • 2021-11-05
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案