简体   繁体   中英

ORA-00904 when for inner joining same table

My query is :

select right.* from Table1 JOIN Table1 right on (right.field1 = left.field1)

I need to expand this query even more with where clause. But this itself is throwing, ORA-00904 : invalid identifier error.

Right and Left are reserved keywords name for right and left join

change right and left to some other alias name.

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