sql 取代游标的写法示例
编程学习 2021-07-05 13:42www.dzhlxh.cn编程入门
本节主要介绍了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)