1、又称连贯查问,连贯多个表中的数据,取得后果集。当一个表不能满足查问后果时,须要应用联结查问。

2、前提,联结表之间必须有逻辑相关性。

实例

-- 示例:select orders.order_id, orders.amt, customer.cust_name, customer.tel_nofrom orders, customerwhere orders.cust_id = customer.cust_id; -- 起别名select a.order_id, a.amt, b.cust_name, b.tel_nofrom orders a, customer bwhere a.cust_id = b.cust_id;

以上就是mysql联结查问的介绍,心愿对大家有所帮忙。