mysql 同表查询更新

update apples 
set price = ( 
select price from ( 
select * from apples 
) as x 
where variety = 'gala') 
where variety = 'fuji'; 


原文地址:https://www.cnblogs.com/yins/p/10895291.html