select ROW_NUMBER() over( order by sort_id asc) as rows,* into #tmp_tb from tb_district
其中sort_id为您原表的排序列。
tb_district为要操作的表。
转载于:https://www.cnblogs.com/daretodream/archive/2013/04/03/2997800.html
select ROW_NUMBER() over( order by sort_id asc) as rows,* into #tmp_tb from tb_district
其中sort_id为您原表的排序列。
tb_district为要操作的表。
转载于:https://www.cnblogs.com/daretodream/archive/2013/04/03/2997800.html