思路
-
Oracle update关联表的思路总结
1、 其中最普通的是update t1 set b=(select b from t2 where t1.a=t2.a); 但是,要注意空值的影响, 如果怕空值的影响,要写成 update t1 set tname= (select sname from t2 where t1.id=t2.id) …
1、 其中最普通的是update t1 set b=(select b from t2 where t1.a=t2.a); 但是,要注意空值的影响, 如果怕空值的影响,要写成 update t1 set tname= (select sname from t2 where t1.id=t2.id) …