2
我有這樣的凌亂使用3個表連接查詢:列從條款 'idproduct' 不明確
SELECT p.idproduct, p.name, m.sust, p.desc, pp.p_v
FROM products As p
LEFT JOIN meds As m ON m.idproduct = p.idproduct
NATURAL JOIN products_prices As pp
INNER JOIN suc_products As sp ON sp.idsuc = 'SUC1' AND sp.idproduct = p.idproduct
WHERE p.bars = '1';
我得到這個錯誤:
Error Code: 1052. Column 'idproduct' in from clause is ambiguous
需要幫助,請。
非常感謝你,它的作品像魅力。 –