Home Privacy Policy Feedback Link to us Site Map

Oracle/PLSQL: ORA-00984 Error


Error:

ORA-00984: column not allowed here

Cause:

You tried to execute an SQL statement that included a column name where it was not permitted.

Action:

The options to resolve this Oracle error are:
  1. This error most commonly occurs when you try to include a column name in the VALUES clause of an INSERT statement.

For example, if you had tried to use the column named "customers" in an INSERT statement as follows:

INSERT INTO suppliers
(supplier_id, supplier_name)
VALUES
(1, customer_name);


You would receive the following error message:


You could correct the INSERT statement by including a character value, instead of the column name as follows:

INSERT INTO suppliers
(supplier_id, supplier_name)
VALUES
(1, 'IBM');


Or if you needed to include a column name, you could rewrite the INSERT statement with a sub-select as follows:

INSERT INTO supplier
(supplier_id, supplier_name)
SELECT account_no, customer_name
FROM customers
WHERE city = 'Newark';