以下声明引发了此错误:
'字段列表'中的未知列'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
。鉴于此,问题可能出在这里?