我有3連接的查詢:縮短連接查詢
SELECT t1.email, t2.firstname, t2.lastname, t4.value
FROM t1
left join t2 on t1.email = t2.email
Inner join t3 on t2.entity_id = t3.order_id
Inner join t4 on t3.product_id = t4.entity_id
WHERE t4.attribute_id = 126
我想我的服務器就不能讓它:) - >時間已經不多了,從而出現錯誤!
非常感謝
表structur:
T1: 電子郵件(其然後在t2中是相同的)
T2: 電子郵件名姓訂單ID(這被稱爲實體ID在T3 )
T3: ENTITYID產品ID(其被稱爲在t4的實體ID)
T4: entityid attributeid值
你爲什麼這麼認爲? – Devart 2012-03-16 15:48:22
這是什麼問題? – 2012-03-16 15:48:36
你可以發佈你的表結構嗎? – 2012-03-16 15:48:36