From: Peter Eisentraut <peter_e@gmx.net>
To: Emils Klotins <emils@mail.usis.bkc.lv>
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] INSERT w/o variable names for a SERIAL type?
Date: Sun, 27 Feb 2000 16:18:39 +0100 (CET)
Message-ID: <Pine.LNX.4.21.0002260418130.3063-100000@localhost.localdomain> (raw)
In-Reply-To: <200002251428.QAA06635@www.usis.bkc.lv>
Emils Klotins writes:
> Now, if I want to write a general #define, I'd need to have a way
> to specify 'default' for SERIAL field, for, if I omit the id field in
> VALUES, I need to specify all the rest of the fields explicitly.
>
> Is there any value I could put in place of id in VALUES part, to
> make it replaced with the next value in sequence?
INSERT INTO my_table VALUES (a, b, c, DEFAULT, x, y, z, ...);
--
Peter Eisentraut Sernanders väg 10:115
peter_e@gmx.net 75262 Uppsala
http://yi.org/peter-e/ Sweden
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: peter_e@gmx.net, emils@mail.usis.bkc.lv
Subject: Re: [SQL] INSERT w/o variable names for a SERIAL type?
In-Reply-To: <Pine.LNX.4.21.0002260418130.3063-100000@localhost.localdomain>
References: <200002251428.QAA06635@www.usis.bkc.lv> <Pine.LNX.4.21.0002260418130.3063-100000@localhost.localdomain>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox