update多表关联示例:
update A a set a.route =
(select b.route from B b where a.orgn = b.orgn and a.dest = b.dest)
where exists
(select * from B b where b.orgn = a.orgn and b.dest = a.dest);
update 超过2个值
update customers a
set (city_name,customer_type)=(select b.city_name,b.customer_type
from tmp_cust_city b
where b.customer_id=a.customer_id)
where exists (select 1
from tmp_cust_city b
where b.customer_id=a.customer_id)
更多参考:http://it.oyksoft.com/post/641/