其他分享
首页 > 其他分享> > 联结表

联结表

作者:互联网

inner join 内联

-- 内联 查询在 student5中,也在student6中的数据。
SELECT student5.wechat_id from student5
-- 联结关系 表名
INNER JOIN student6
-- 联结条件
ON
student5.wechat_id = student6.wechat_id

left join 左联结

这里有两个表,1个顾客表(custormer1107) 有两个字段

 

订单表(orders1107) 有三个字段

标签:no,--,联结,orders1107,custormer1107,顾客,id
来源: https://www.cnblogs.com/linho/p/15260993.html