您好,欢迎访问一九零五行业门户网

mysql 跨表查询、更新、删除示例_MySQL

bitscn.com下面来谈谈跨表插入,更新和删除
首先讨论的是跨表查询:
insert into `table_a` select * from `table_b`;注意*代表全部插入。
接着又讨论关于跨表更新
update `table_a`, `table_b` set `table_a`.`name` = `table_b`.`name` where `table_a`.`id` = `table_b`.`id`;
bitscn.com
其它类似信息

推荐信息