很高兴找到天才成员这样一个有用的网站.我一直试图找到这个SQLITE问题的解决方案.谷歌没有帮助我,除了找到这个网站.SQL查询在同一数据库的MSAccess版本上正常工作.
这是我的SQL语句 - 这对我不起作用.
SELECT Invoices.InvoiceNumber, Invoices.Quantity,Invoices.Code, Invoices.Price,Invoices.Discount, Invoices.InvoiceGrandTotal, Employees.EmployeeName, Customers.CustomerName, Invoices.DateOfInvoice, [price]*[Quantity] AS Total, Customers.Address, Products.Description,Products.Unit
FROM Products
INNER JOIN (
(
( Invoices INNER JOIN InvoiceDetails
ON Invoices.InvoiceNumber = InvoiceDetails.InvoiceNumber
) INNER JOIN Customers
ON Invoices.CustomerID = Customers.CustomerID
) INNER JOIN Employees
ON Invoices.UserID = Employees.EmployeeID
) ON Products.Code = InvoiceDetails.Code
WHERE (((InvoiceDetails.InvoiceNumber)='10111'));
Run Code Online (Sandbox Code Playgroud)
错误消息是: " Cannot compile Select-Statement: no such column: Invoices.InvoiceNumber"