我有一个查询
我试过了..
select "Rental".*,ora_rowscn from "Rental"
它运作良好。
但是当我把它加入另一张桌子(这是真正的要求)时,就像这样
SELECT "Rental".*, ORA_ROWSCN FROM "Rental"
inner join "UserBranch" on "UserBranch"."fkBranchId" = "Rental"."fkBranchId"
WHERE "Rental"."IsDeleted"='N' ;
它给了我异常
ORA-00904: "ORA_ROWSCN": invalid identifier
我甚至试过这个
select ora_rowscn,"myTable"."pkRentalId" from (select "Rental"."pkRentalId" from "Rental"
inner join "UserBranch" on "UserBranch"."fkBranchId" = "Rental"."fkBranchId"
WHERE "Rental"."IsDeleted"='N' ) "myTable"
同样的例外
也尝试了这个
select "myTable".*,"myTable".ora_rowscn as "TimeStamp" from (select "Rental".* from "Rental" inner join "UserBranch" on "UserBranch"."fkBranchId" = "Rental"."fkBranchId"
WHERE "Rental"."IsDeleted"='N' ) "myTable"
同样的例外
请帮助