我有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