rt{:soso_e117:} 作者: 霍世勇 时间: 2012-4-9 10:54
update customers a
set city_name=(select b.city_name 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
)
-- 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
) 作者: pray 时间: 2014-4-26 07:26
让网络上纷纷冒出该帖的真人版卡通版搞笑版成人版的好帖