我收到以下错误:'字段列表'中的未知列'idt.amt'

时间:2015-09-15 04:19:13

标签: mysql list join

以下声明引发了此错误:

  

'字段列表'中的未知列'idt.amt'

 SELECT
     c.name,
     c.addr1,
     c.addr2,
     c.city,
     c.state,
     c.zip,
     i.invoiceID,
     p.description,
     idt.amt,
     idt.qty
 FROM
     customer AS c
 JOIN
     invoicehdr AS i ON c.customerID = i.customerID
 JOIN
     invoicedtl AS idt ON i.invoiceID = idt.invoiceID
 JOIN
     product AS p ON idt.prodID = p.prodID;
amt表格中存在

invoicedtl。鉴于此,问题可能出在这里?

0 个答案:

没有答案