Search code examples
sqloracletable-alias

What is wrong with my oracle select query below?


enter image description here

Why my first select query shows error at 'AS' when the second one is ok? - oracle sql - error message: SQL command not properly ended


Solution

  • Oracle does not allow as in table level alias. It's allowed for column and subquery, that's why you don't get the error for the second example.

    Fix it by removing as like below:

    select * from cisa xxxx