Re: Auto incrementing fields. How?

Поиск
Список
Период
Сортировка
От Dan Wilson
Тема Re: Auto incrementing fields. How?
Дата
Msg-id 006801c069da$6f8d4490$078353d8@danwilson
обсуждение исходный текст
Ответ на Auto incrementing fields. How?  (Harry Wood <harry.wood@ic.ac.uk>)
Список pgsql-general
Use the column type of SERIAL in your create table statement.  This will
automatically create a sequence and default for the given column.

http://www.postgresql.org/users-lounge/docs/7.0/user/sql-createsequence.htm
for more on sequences.


----- Original Message -----
From: "Harry Wood" <harry.wood@ic.ac.uk>
To: <pgsql-general@postgresql.org>
Sent: Tuesday, December 19, 2000 6:51 AM
Subject: [GENERAL] Auto incrementing fields. How?


> Anyone know how to create auto incrementing fields?
>
> --
> Harry
> harry.wood@ic.ac.uk
> http://www.doc.ic.ac.uk/~hw97/Nojer2
> Nojer2 on chat.yahoo.com and zapidonia.com
> ICQ number 18519769


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

Предыдущее
От: "Dan Wilson"
Дата:
Сообщение: Re: newbie question:
Следующее
От: "Brett W. McCoy"
Дата:
Сообщение: Re: Auto incrementing fields. How?