From: Christophe Labouisse <christophe.labouisse@dial.oleane.com>
To: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] Unique Number KEY
Date: 26 Feb 1999 23:45:00 +0100
Message-ID: <m3yalk3hub.fsf@gabuzo.meunet> (raw)
References: <000901be61af$7018d800$ce9efea9@blneige>
<36D6E70D.ACF4CB7D@digiro.net>
CIMPOESU Teodor <teo@digiro.net> writes:
> you have 2 ways to do it:
> 1. try something like
> CREATE TABLE STUDENTS(
> studentID int4 DEFAULT 'int(now())',
> studentName text );
Is suspect int(now()) to have a resolution of one second. Therefore
this will not work if you insert more than one record in a second.
Christophe Labouisse : Cinéma, typographie, Unix
christophe.labouisse@dial.oleane.com http://www.multimania.com/gabuzo/
Le cinéma en Lumière : http://www.lumiere.org/
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: christophe.labouisse@dial.oleane.com
Subject: Re: [SQL] Unique Number KEY
In-Reply-To: <m3yalk3hub.fsf@gabuzo.meunet>
References: <000901be61af$7018d800$ce9efea9@blneige> <36D6E70D.ACF4CB7D@digiro.net> <m3yalk3hub.fsf@gabuzo.meunet>
* 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