Site icon IT Tutorial

ORA-00923: FROM keyword not found where expected

I got ” ORA-00923: FROM keyword not found where expected ”  error in Oracle database.

 

ORA-00923: FROM keyword not found where expected

 

Details of error are as follows.

ORA-00923 FROM keyword not found where expected


Cause: In a SELECT or REVOKE statement, the keyword FROM was either missing, misplaced, 
or misspelled. The keyword FROM must follow the last selected item in a SELECT statement 
or the privileges in a REVOKE statement.

Action: Correct the syntax. Insert the keyword FROM where appropriate. The SELECT list itself
 also may be in error. If quotation marks were used in an alias, check that double quotation
 marks enclose the alias. Also, check to see if a reserved word was used as an alias.




 

 

FROM keyword not found where expected

This ORA-00923 errors are related with the SELECT or REVOKE statement, the keyword FROM was either missing, misplaced, or misspelled. The keyword FROM must follow the last selected item in a SELECT statement or the privileges in a REVOKE statement.

 

For example;

If you run the following query, you will get this error, because you don’t use FROM keyword.

SELECT *  employees;

 

You need to use FROM keyword as follows.

SELECT * from employees;

 

To solve this error, Correct the syntax. Insert the keyword FROM where appropriate. The SELECT list itself also may be in error. If quotation marks were used in an alias, check that double quotation marks enclose the alias. Also, check to see if a reserved word was used as an alias.

 

 

Do you want to learn Oracle Database for Beginners, then read the following articles.

Oracle Tutorial | Oracle Database Tutorials for Beginners ( Junior Oracle DBA )

 

Exit mobile version