UPDATE table_a a,
(SELECT id, age, `name` FROM cc) b
SET a.age = b.age, a.`name` = b.`name`
WHERE a.id = b.id
从cc表查询出数据,和a表的id关联,更新到a表中去
UPDATE table_a a,
(SELECT id, age, `name` FROM cc) b
SET a.age = b.age, a.`name` = b.`name`
WHERE a.id = b.id
从cc表查询出数据,和a表的id关联,更新到a表中去