数据库_表连接:Join
关于联表的概念:
内联(Inner Join):
SELECT * FROM A
INNER JOIN B ON A.id=B.id;
左联表(Left Join):
SELECT * FROM A
LEFT JOIN B ON A.id=B.id;
右联表(Right Join):
SELECT * FROM A
RIGHT JOIN B ON A.id=B.id;
全联(Full Join):
SELECT * FROM A
FULL JOIN B ON A.id=B.id;
https://www.ruanyifeng.com/blog/2019/01/table-join.html
posted on 2020-09-15 17:31 ng机械化卡拉库里咯博透 阅读(114) 评论(0) 编辑 收藏 举报