简体   繁体   中英

Query with join from MSSQL to Oracle

I have this query which runs on MsSQL:

select BL.ID from O_USERS_BATCH
as UB join O_BATCH_LOCK as BL on UB.INSTANCE_ID = BL.ID order by BL.ID

How do I convert it to work with Oracle data base type?

The only change is to drop the as :

select BL.ID
from O_USERS_BATCH ub join
     O_BATCH_LOCK BL
     on UB.INSTANCE_ID = BL.ID
order by BL.ID;

Oracle doesn't support as for table aliases.

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