Re: create table autoincrement

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: create table autoincrement
Дата
Msg-id 007e01c120de$42077ca0$1001a8c0@archonet.com
обсуждение исходный текст
Ответ на create table autoincrement  (Jose Manuel Lorenzo Lopez <jose-manuel.lorenzo-lopez@ica.conti.de>)
Список pgsql-general
From: "Jose Manuel Lorenzo Lopez" <jose-manuel.lorenzo-lopez@ica.conti.de>

> Hello PG's,
>
> is it possible to create a table with key fields (integer) that will
autoincrement
> when inserting a dataset???
>
Look in the manuals for the CREATE SEQUENCE stuff. There is a special type
SERIAL which does all this for you. Check Bruce's online book too - bound to
have examples in that.

- Richard Huxton


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: An unfair comparision....
Следующее
От: Justin Clift
Дата:
Сообщение: Re: An unfair comparision....