update t1 set t1.order_num = t.rn
from table1 t1
join (select *,rn = ROW_NUMBER() OVER(ORDER BY id) from table2)t on t1.column = t.column
sql server 将序号更新到指定的列
猜你喜欢
转载自www.cnblogs.com/TulipsWill/p/11673033.html
今日推荐
周排行