mysql 同表查询更新

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


posted @ 2019-05-20 17:20  子夜小白  阅读(1030)  评论(0)    收藏  举报