我想下面的查詢
SELECT Customer.*,
ElectrnicItem.Product1 AS ElectronicItem1,
ElectrnicItem.Product2 AS ElectronicItem2,
ElectrnicItem.Product3 AS ElectronicItem3,
ApparelItem.Product1 AS ApparelItem1,
ApparelItem.Product2 AS ApparelItem2,
ApparelItem.Product3 AS ApparelItem3
FROM Customer
LEFT JOIN Inventory AS ElectrnicItem
ON (Customer.CustomerID = ElectrnicItem.CustomerID)
LEFT JOIN Inventory AS ApparelItem
ON (Customer.CustomerID = ApparelItem.CustomerID)
但它總是返回:含糊不清的
ORA-00918列
您是否可以將Customer. *分解爲Customer.CustomerID,Customer.CustomerName?不知道這是否是問題。 – Hazaart 2013-05-03 09:09:19
客戶表中的列名稱是什麼? – Nagasaki 2013-05-03 09:10:52
你可以用'CREATE TABLE'語句替換圖像嗎?發佈實際代碼(我們可以複製和粘貼以測試自己的文本)通常比代碼圖片更好。 – 2013-05-03 09:12:37