日期:2014-05-18 浏览次数:20716 次
update a set x = ( select max(y) from ( select max(d) as y from b union all select max(e) as y from b union all select max(f) as y from b ) as t )
------解决方案--------------------
update a set x = ( select max(y) from ( select d as y from b where id=a.id union all select e as y from b where id=a.id union all select f as y from b where id=a.id ) as t )