mysql中的update set select的使用方法
1 ,mysql中update语句中嵌套select的语法格式,可以用inner, left左联和右联进行条件查询
UPDATE table1 a
LEFT JOIN table2 b ON a.id = b.id
SET a.fee = b.fee
2,与1中的效果相同
UPDATE table1 a,table2 b
SET a.fee = b.fee
WHERE a.id = b.id
上一篇:没有了
1 ,mysql中update语句中嵌套select的语法格式,可以用inner, left左联和右联进行条件查询
UPDATE table1 a
LEFT JOIN table2 b ON a.id = b.id
SET a.fee = b.fee
2,与1中的效果相同
UPDATE table1 a,table2 b
SET a.fee = b.fee
WHERE a.id = b.id
上一篇:没有了
CopyRight © 企业微信自动加好友助手|老张软件 | 网站地图