Site icon IT Tutorial

ORA-00936: missing expression

Hi,

I got ” ORA-00936: missing expression ” error in PL/SQL.

 

 

ORA-00936: missing expression

 

Details of error are as follows.

ORA-00936 missing expression

Cause: A required part of a clause or expression has been omitted. 
For example, a SELECT statement may have been entered without a list of columns or expressions
 or with an incomplete expression. This message is also issued in cases where a reserved word
 is misused, as in SELECT TABLE.


Action: Check the statement syntax and specify the missing component.
 

 

 

ORA-00936

The ORA-00936: missing expression error is related with the missing of SQL statement syntax and omitted a part of the syntax.

 

missing expression

If you forget to use of FROM clause or Column names in your SELECT statement, you will get this error.

To solve this error, make sure your SQL Statement or SQL Syntax is written correctly.

Check your SQL Statement, if you use extra commas, then remove it if it shouldn’t be in your query.

 

Don’t forget * or From clause in Select statement as follows.

Example 1:

SELECT FROM Test_table; 
ORA-00936: missing expression

Example 2:
SELECT * Test_table; 
ORA-00936: missing expression

 

To solve this error, use * and  from in SQL Statement as follows.

select * from Test_table;

 

If you got this error in Update,insert or delete statement, make sure that you have used all the keywords that are required (UPDATE, SET, VALUES, WHERE and etc..)

 

 

 

Do you want to learn Oracle SQL, then read the following articles.

Oracle SQL Tutorials For Beginners – Learn Oracle SQL from scratch with Oracle SQL Online Course

 

Exit mobile version