Re: auto_increment

Поиск
Список
Период
Сортировка
Искать
От
sad
Тема
Re: auto_increment
Дата
Msg-id
200309220915.04899.sad@bankir.ru
Ответ на
Re: auto_increment (Oliver Elphick)
Список
Дерево обсуждения
Re: auto_increment Christopher Browne <cbbrowne@acm.org>
On Saturday 20 September 2003 10:23, you wrote:
> On Sat, 2003-09-20 at 06:10, Muhyiddin A.M Hayat wrote:
> > How to Create auto_increment field in PostreSQL.
> > Can I create them using Trigger.
>
> Use the SERIAL datatype.  See also the functions nextval(), currval()
> and setval().

I believe it is better to EXPLICITLY declare a SEQUENCE and 
set the default value nextval() to the field.


В списке pgsql-sql по дате отправления
От: Bruno Wolff III
Дата:
От: sad
Дата:
FAQ