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