为什么ami得到这个#1305 - 功能homeshopping.partID不存在

时间:2016-02-16 13:53:56

标签: mysql

mysql php admin table query enter image description here

我不明白为什么它说partID给我一个问题?它在表中,我认为我已正确链接。我已经改变了一些事情,我用逗号清除了逗号,清除了很多我的错误。但是既然我已经做到了,它继续给我#1305 - FUNCTION homeshopping.partID不存在。我甚至看过设计师的结构,以确保列名表是正确的。

1 个答案:

答案 0 :(得分:0)

不要忘记将您的查询发布为文本。 因为它错过了关键字 IN 来进行这样的查询:

SELECT CONCAT(hscust.first,' ', hscust.last AS Customer,hsitems.description,hsitems.price,hsitems.itemCalss
FROM hscust,hsorders,hslineitem,hsitems
WHERE hslineitems.orderId = hsorders.orderId AND hsitems.partID = hslineitem.partNum AND hslineitem.price = hsitems.price AND partID IN ('CB03', 'CZ82');