From: Joel Burton <joel@joelburton.com>
To: Stefan Lindner <lindner@visionet.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: system maintained keys
Date: Fri, 19 Oct 2001 16:34:26 -0400 (EDT)
Message-ID: <Pine.LNX.4.30.0110191633430.22474-100000@temp.joelburton.com> (raw)
In-Reply-To: <9qf06v$20bh$1@news.tht.net>
On Mon, 15 Oct 2001, Stefan Lindner wrote:
> Is there any way to get system maintained keys from postgres? e.g. to
> have a table with a primary key column (varchar or int) and let postgres
> chose the next unique value for this column?
\h CREATE SEQUENCE will give syntax, or look up SEQUENCES and SERIAL data
type in the documentation.
--
Joel BURTON | joel@joelburton.com | joelburton.com | aim: wjoelburton
Independent Knowledge Management Consultant
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: joel@joelburton.com, lindner@visionet.de
Subject: Re: system maintained keys
In-Reply-To: <Pine.LNX.4.30.0110191633430.22474-100000@temp.joelburton.com>
References: <9qf06v$20bh$1@news.tht.net> <Pine.LNX.4.30.0110191633430.22474-100000@temp.joelburton.com>
* 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