Re: Auto_Increment

Поиск
Список
Период
Сортировка
От Peter Childs
Тема Re: Auto_Increment
Дата
Msg-id 200308091716.47530.Blue.Dragon@blueyonder.co.uk
обсуждение исходный текст
Ответ на Auto_Increment  (Stephane Pinel <spinel@noos.fr>)
Список pgsql-novice
On Saturday 09 August 2003 15:44, Stephane Pinel wrote:
> What is the pgsql equivalent keyword for the MySQL auto_increment
> keyword ?

serial. (For the short answer) To be quick. ie

CREATE table x (a serial);

or

CREATE SEQUENCE a_seq;
ALTER TABLE x ALTER a SET DEFAULT next_val('a_seq');


>
> Thanks.
>
> Regards.
>
> Stephane
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
>                http://archives.postgresql.org


Peter Childs

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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Upgrade 7.2 to 7.3
Следующее
От: "John T. Yocum"
Дата:
Сообщение: Re: CURRENT TIME causes server to shutdown connection