Definging columns for INSERT statements - Mailing list pgsql-general

From Rich Shepard
Subject Definging columns for INSERT statements
Date
Msg-id 27d9076-c416-7847-7bd-159a5c3ee38a@appl-ecosys.com
Whole thread Raw
Responses Re: Defining columns for INSERT statements
Re: Definging columns for INSERT statements
Re: Definging columns for INSERT statements
List pgsql-general
I have > 100 rows to add to a table using INSERT INTO statements. I want the
PK to be the next value in the sequence. Would this be the appropriate
syntax for the columns to be entered?

INSERT INTO people (person_nbr DEFAULT('people_person_nbr_seq'),lname,fname,job_title DEFAULT
'Contact',company_nbr,loc_nbr,direct_phone,cell_phone,email,activeDEFAULT('true')) VALUES
 
( ...

TIA,

Rich



pgsql-general by date:

Previous
From: Casey & Gina
Date:
Subject: Re: Question about UNIX socket connections and SSL
Next
From: Rich Shepard
Date:
Subject: UPDATE with multiple WHERE conditions