17,382
社区成员




update A t1
set col =
(select rn
from (select col, rownum rn from A order by col) t2
where t1.col = t2.col)
update A t1
set col =
(select rn
from (select col, rownum rn from mm order by col) t2
where t1.col = t2.col)
update 表 set 字段=rownum order by 字段