Quantcast
Channel: MySQL
Viewing all articles
Browse latest Browse all 50

MySQL 从一张表update字段到另外一张表中

$
0
0
先来几个简单的示例 Solution 1: 1列 update student s, city c set 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.id Solution 3: 子查询 update student s set city_

Viewing all articles
Browse latest Browse all 50

Trending Articles