From: Josh Berkus <josh@agliodbs.com>
To: Stefan Lindner <lindner@visionet.de>
To: pgsql-sql@postgresql.org
Subject: Re: system maintained keys
Date: Fri, 19 Oct 2001 10:46:50 -0700
Message-ID: <web-151189@davinci.ethosmedia.com> (raw)
In-Reply-To: <9qf06v$20bh$1@news.tht.net>
Stefan,
> 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?
Please address future questions of this type to the PGSQL-NOVICE list.
PGSQL-SQL is for more advanced SQL issues.
Yes, you can do this easily, Please see:
http://www.postgresql.org/idocs/index.php?datatype.html#DATATYPE-NUMERIC
Look at secion 3.1.1 on the page.
-Josh
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh@agliodbs.com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: josh@agliodbs.com, lindner@visionet.de
Subject: Re: system maintained keys
In-Reply-To: <web-151189@davinci.ethosmedia.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