ora_rowscn并加入不合作

时间:2014-12-22 06:58:56

标签: join oracle10g timestamp

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

此查询在oracle 10g中返回无效标识符异常。我是初学者,不知道异常即将到来的原因。请帮忙。谢谢。

2 个答案:

答案 0 :(得分:1)

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

没有加入它对我来说很完美

答案 1 :(得分:0)

请尝试使用以下查询获取您的值:



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