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-10-01 07:14:39
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