在MySQL中加入查询混乱

时间:2018-10-24 06:33:30

标签: mysqli

我的困惑围绕以下几点:

SELECT t3.id, t3.name SUM(t1.quantity_available) as 'quantity' FROM product_merchant as t1
INNER  join product_category as  t2
(inner join category as t3
on t2.category_id=t3.id  on t1.product_id = t2.product_id )
where t1.merchant_id= 3  GROUP BY t3.id

0 个答案:

没有答案