Resolve ORA-00908 Error Message in Oracle

Learn the cause and how to unravel the ORA-00908 error message in Oracle.

Description

When you come across an ORA-00908 error, the following error message will appear:

ORA-00908: missing NULL keyword

Cause

You tried to execute a SQL statement, however you overlooked entering the NULL keyword.

Resolution

The option(s) to resolve this Oracle error are:

Option #1

This error can show up if you strive to execute a SQL announcement using the IS NULL circumstance or IS NOT NULL condition, however omit entering the NULL keyword.

For example, if you tried executing the following statement:

SELECT *
FROM suppliers
WHERE supplier_name IS NOT;

You would receive the following error message:

You ought to right this error, by way of enhancing the statement as follows:

SELECT * 
FROM suppliers
WHERE supplier_name IS NOT NULL;