作者:iamlaosong
正常更新一个表中多个字段时,字段是分开写的,例如:
update tb_county t set t.prov_name = '安徽', t.city_name = '合肥市', t.xs_mc = '庐阳区' where t.xs_code = '2300';
update tb_county t set (t.prov_name, t.city_name, t.xs_mc) = (select t.prov_name, t.city_name, t.xs_mc from tb_yzbm t where t.postcode = '230000') where t.xs_code = '2300';
update tb_county t set (t.prov_name, t.city_name, t.xs_mc) = (select '安徽', '合肥市', '庐阳区' from dual) where t.xs_code = '2300';
原文地址:http://blog.csdn.net/iamlaosong/article/details/38924851