Re: system maintained keys

From: "Josh Berkus" <josh(at)agliodbs(dot)com>
To: "Stefan Lindner" <lindner(at)visionet(dot)de>, pgsql-sql(at)postgresql(dot)org
Subject: Re: system maintained keys
Date: 2001-10-19 17:46:50
Message-ID: web-151189@davinci.ethosmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(at)agliodbs(dot)com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jason Earl 2001-10-19 18:57:44 Re: system maintained keys
Previous Message Josh Berkus 2001-10-19 15:07:50 Re: oid's in views.