I'm trying to study this database , and I want to look for column data based on its position , like so:
select * from V$RESERVED_WORDS where COLUMNS.FIRST like '%'
However, this doesn't seem to work. I get this error:
select * from V$RESERVED_WORDS where COLUMNS.FIRST like "%"
Error at Command Line:10 Column:57
Error report:
SQL Error: ORA-00904: "%": invalid identifier
00904. 00000 - "%s: invalid identifier"
*Cause:
*Action:
I'm using Oracle SQL . Any tips appreciated.
You cant use ordinal, but you need to specify column name. Your query:
SELECT * FROM V$RESERVED_WORDS
WHERE KEYWORD LIKE '%';
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With