运维网's Archiver
论坛
›
MySQL运维
› mysql表连接的知识待补充
重温战场
发表于 2016-10-21 09:04:16
mysql表连接的知识待补充
等值连接又叫内链接 inner join 只返回两个表中连接字段相等的行
select * from A inner join B on A.id = B.id; #做法1
select * from A,B where A.id = B.id; #做法2
页:
[1]
查看完整版本:
mysql表连接的知识待补充