Re: auto_increment

Поиск
Список
Период
Сортировка
От sad
Тема Re: auto_increment
Дата
Msg-id 200309220915.04899.sad@bankir.ru
обсуждение исходный текст
Ответ на Re: auto_increment  (Oliver Elphick <olly@lfix.co.uk>)
Ответы Re: auto_increment
Список pgsql-sql
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
Дата:
Сообщение: Re: Cross joining table with itself
Следующее
От: sad
Дата:
Сообщение: Re: Reg: Firing Trigger when a particular column value get changed