mysql update set **=(select)_aDair_新浪博客,aDair, ... 在mysql中,不能直接使用set select的結果,必須使用inner join: update a inner join (select yy from b) c on a.id =b.id set a.xx = c.yy
blog.sina.com.cn