sql 取代游标的写法示例

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) 

原创文章,作者:306829225,如若转载,请注明出处:https://blog.ytso.com/tech/database/234764.html

(0)
上一篇 2022年1月23日 21:50
下一篇 2022年1月23日 21:50

相关推荐

发表回复

登录后才能评论