MySQL 从一张表update字段到另外一张表中
2017-02-06
21
先来几个简单的示例Solution 1: 1列update student s, city cset s.city_name = c.name where s.city_code = c.code;Solution 2: 多个列update a, b set a.title=b.title, a.name=b.namewhere a.id=b.idSolution 3: 子查询update student s set city_name = (select...