Re: Definging columns for INSERT statements

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Definging columns for INSERT statements
Date: 2024-06-12 22:43:12
Message-ID: fed2c3e-985f-c3a7-f8e6-b4a59a202b38@appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 12 Jun 2024, David G. Johnston wrote:

>> 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,active
>> DEFAULT('true')) VALUES
>>
>
> https://www.postgresql.org/docs/current/sql-insert.html
>
> Not sure where you got the idea that something besides a plain column name
> can appear in the optional parentheses after the table name.

David,

I've not used nextval() before which is why I asked.

Thanks,

Rich

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2024-06-12 22:46:37 Re: UPDATE with multiple WHERE conditions
Previous Message Rich Shepard 2024-06-12 22:41:14 Re: UPDATE with multiple WHERE conditions