update u_menu
set issort=t1.rowId
from
(
--select * from
--(
select cmenu_id,ROW_NUMBER() over(Order by cmenu_id) as rowId
from u_menu
) as t1
where t1.cmenu_id=u_menu.cmenu_id
--) as t
时间: 2024-12-05 11:09:30
update u_menu
set issort=t1.rowId
from
(
--select * from
--(
select cmenu_id,ROW_NUMBER() over(Order by cmenu_id) as rowId
from u_menu
) as t1
where t1.cmenu_id=u_menu.cmenu_id
--) as t