Re: Auto incrementing an integer

Поиск
Список
Период
Сортировка
От Thomas Swan
Тема Re: Auto incrementing an integer
Дата
Msg-id 3B004DC6.70301@olemiss.edu
обсуждение исходный текст
Ответ на Auto incrementing an integer  ("Sylte" <Sylte_@hotmail.com>)
Список pgsql-sql
Sylte wrote:

>How do I construct a datatype that autoincrement in postgreSQL?
>
Use the SERIAL data type instead of an INT4.    Serial is an integer 
(INT4) that's default value is base on a sequence.

for example...

create table foo (  my_id serial not null,  my_data text
);





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

Предыдущее
От: Per-Olof Pettersson
Дата:
Сообщение: Re: How NULL is interpreted in Pgsql
Следующее
От: Chris Ryan
Дата:
Сообщение: [Fwd: [Gborg-bugs] BUG: reference error when using inherited tables (ID: 269) (new)]