0
你好ID对我想写一个MySQL查询基于来自另一个 这里的ID一个表中选择多条记录是我的查询Multple记录基于来自其他
SELECT o.total, o.shipping, o.order_date, oc.product_type, oc.quantity, cu.first_name,
cu.last_name, CONCAT(cu.address1, cu.address2) AS address
FROM `orders` AS o
INNER JOIN order_contents as oc ON o.id=oc.order_id
INNER JOIN `customers` AS cu ON o.customer_id=cu.id
WHERE o.customer_id = '217';
在order_contents的内部连接如果超过1,我想选择多个记录
我使用什么样的连接,这可能吗?
感谢的人,这是我想要的选择。我认为 – Brett
@Brett欢迎您 – Fabio