Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simple SQL command not properly ended [duplicate]

I have the following query:

SELECT * 
FROM DELUSR.AGREEMENT AS agreement 
WHERE agreement.MASTER_AGGREMENT_ID = 4;

After trying to run it, I get this error:

Error code 933, SQL state 42000:
ORA-00933: SQL command not properly ended Line 1, column 1
Execution finished after 0 s, 1 error(s) occurred.

I am not sure how to decode this error message. The statement looks fine to me. Any insights into whats wrong with it?

like image 858
user489041 Avatar asked Mar 31 '26 04:03

user489041


1 Answers

Oracle accepts no AS for table aliases:

SELECT * FROM DELUSR.AGREEMENT agreement WHERE agreement.MASTER_AGGREMENT_ID = 4;
like image 157
Thorsten Kettner Avatar answered Apr 02 '26 18:04

Thorsten Kettner