ORACLE/PLSQL: ORA-00984

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

You would receive the following error message:

Oracle PLSQL

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';

Or You should check columns maybe you wrote wrong coloumns
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: