简体   繁体   中英

Convert old Oracle outer join syntax (+) to JOIN

I have a query that was written for Oracle using the old (+) syntax and now I want to convert it to Access SQL.

Here is my query:

select BOOKCODE.BOOKCODEID,BOOKCODE.BOOKCODENAME 
from Application_bookcode, BookCode 
where BOOKCODE.BOOKCODEID (+) = HMISUnitTest.APPLICATION_BOOKCODE.BOOKCODEID 
  and HMISUnitTest.APPLICATION_BOOKCODE.ApplicationId = 7

What is the equivalent in Access SQL?

If I remember the old Oracle outer join syntax (and it's been a long time ), the corresponding query in Access should be

SELECT 
    BOOKCODE.BOOKCODEID,
    BOOKCODE.BOOKCODENAME 
FROM 
    Application_bookcode
    LEFT JOIN
    BookCode 
        ON BOOKCODE.BOOKCODEID = APPLICATION_BOOKCODE.BOOKCODEID 
WHERE
    APPLICATION_BOOKCODE.ApplicationId = 7

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM