0

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

Shahril
  • 105
  • 1
  • 1
  • 9

1 Answers1

2

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 
APC
  • 144,005
  • 19
  • 170
  • 281
Zaynul Abadin Tuhin
  • 31,407
  • 5
  • 33
  • 63