Re: [SQL] Unique Number KEY

Поиск
Список
Период
Сортировка
От Christophe Labouisse
Тема Re: [SQL] Unique Number KEY
Дата
Msg-id m3yalk3hub.fsf@gabuzo.meunet
обсуждение исходный текст
Ответ на Unique Number KEY  ("Patrice DUMAS" <pdumas@inforoutes-ardeche.fr>)
Список pgsql-sql
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/

В списке pgsql-sql по дате отправления:

Предыдущее
От: David Martinez Cuevas
Дата:
Сообщение: Re: [SQL] CREATE TABLE
Следующее
От: Sue Hanen
Дата:
Сообщение: Trying to concatenate using a string variable and text