ora_rowscn and joins not working together

断了今生、忘了曾经 提交于 2019-12-20 06:46:03

问题


SELECT "Rental".*, "Rental".ora_rowscn as TimeStamp FROM "Rental" 
       inner join "UserBranch" on "UserBranch"."fkBranchId" = "Rental"."fkBranchId"
       WHERE "Rental"."IsDeleted"='N' ;

This query returns me invalid identifier exception in oracle 10g. I'm a beginner and don't know why the exception is coming. please help. Thank you.


回答1:


Select "Rental".* ,"UserBranch"."fkBranchId", "Rental".ora_rowscn as TimeStamp from "Rental","UserBranch"
        where "UserBranch"."fkBranchId" = "Rental"."fkBranchId"
     and "Rental"."IsDeleted"='N';

without joins it works perfectly for me




回答2:


Please try to get your values with the below query :

SELECT Rental.*, Rental.ora_rowscn as TimeStamp FROM Rental 
inner join UserBranch on UserBranch.fkBranchId = Rental.fkBranchId 
WHERE Rental.IsDeleted='N' ;


来源:https://stackoverflow.com/questions/27597921/ora-rowscn-and-joins-not-working-together

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!