2017-12-08 7 views
0

나는이 내 ASP.NET 프로젝트에서 문자열로 전달하고 다음 쿼리 :여러 왼쪽에 대한 MS 액세스에 가입 "가입 표현은 지원되지 않습니다"

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

MSDN에서 해결책을 찾았습니다. 다음 링크는 다음과 같습니다

https://social.msdn.microsoft.com/Forums/office/en-US/15c36745-f7a4-4926-9687-7161e5894468/join-expression-not-supported-error-caused-by-unbracketed-join-expression-comprising-string?forum=accessdev

내가 게시 된 링크와 함께 정답에 참을 수 없어 죄송합니다. 다음은 정답입니다.

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