Re: Insert zero to auto increment serial column

From: David Johnston <polobo(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Insert zero to auto increment serial column
Date: 2014-04-02 13:59:11
Message-ID: 1396447151794-5798336.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

loc wrote
> Setting the serial column to null to auto increment would also
> work for me.

Can you set it to a literal value DEFAULT? Only helps for the insert case
(not copy) but that is the mechanism that is used to specify a column and
ask for the default.

David J.

--
View this message in context: http://postgresql.1045698.n5.nabble.com/Insert-zero-to-auto-increment-serial-column-tp5798318p5798336.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Shaun Thomas 2014-04-02 14:13:10 Re: Insert zero to auto increment serial column
Previous Message Adrian Klaver 2014-04-02 13:46:57 Re: Insert zero to auto increment serial column