Home Privacy Policy Feedback Link to us Site Map

Oracle/PLSQL: ORA-00926 Error


Error:

ORA-00926: missing VALUES keyword

Cause:

You tried to execute an INSERT statement and missed the VALUES keyword.

Action:

The options to resolve this Oracle error are:
  1. Try adding the missing VALUES keyword or use a sub-select. Then re-execute the statement.

For example, if you tried to execute the following:

INSERT INTO suppliers;


You would receive the following error message:


You could correct this error either by adding the missing VALUES keyword, as follows:

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

OR

You could add a sub-select as follows:

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