我有以下查询,我在ASP.NET项目中作为字符串传递:
SELECT creditorName, amount, interestRate, interestType, interestCalculationMethod, insertedDate, o.fullName AS owner, u.fullName AS dataInsertedBy FROM ((tbl_savings s) LEFT JOIN tbl_users o ON (ownerID = o.userID)) LEFT JOIN tbl_users u ON (dataEnteredByID = u.userID);
我收到以下错误:
+ $exception {"Join expression not supported."} System.Data.OleDb.OleDbException
我使用MS Access 2016作为数据库。
怎么了?
答案 0 :(得分:0)
我在MSDN上找到了解决方案。这是链接:
我很抱歉没有提供正确的答案以及我发布的链接。这是正确的答案:
select savingsID, creditorName, amount, interestRate, interestType, interestCalculationMethod, insertedDate, ownerID, o.fullName as owner, u.fullName as dataEnteredBy from((tbl_savings as s) left join tbl_users as o on s.ownerID = o.userID) left join tbl_users as u on s.dataEnteredByID = u.userID