I am using PostgreSQL 8.1.11.
And I'm going crazy. Why can't I use the underlying SQL statement as an INSERT?
I provide:
INSERT INTO the_leads_details ( id, lead_id, question_id, i_value, c_value ) VALUES
( 1, 1, 1, NULL, '4500' ), ( 2, 1, 2, 1, NULL );
^ this comma is a problem
What am I missing? This is similar to the basic SQL INSERT statement for inserting multiple rows. Is my problem related to my version of PostgreSQL?
I insert a lot of rows and I try to optimize multiple INSERT lines instead of placing multiple INSERTs.
source
share