您现在的位置是:网站首页> 编程资料编程资料

sql 取代游标的写法示例_MsSql_

2023-05-26 441人已围观

简介 sql 取代游标的写法示例_MsSql_

 Update Tb_Garden1 G Set Steward = ( Select Id From Zyq.Tb_User U Where Replace(U.Name, '区') = G.Name And Rownum =1) where exists (select 1 from zyq.tb_user u where Replace(U.Name, '区') = G.Name And rownum = 1) 

-六神源码网