RE: Auto incrementing an integer

Поиск
Список
Период
Сортировка
От Michael Davis
Тема RE: Auto incrementing an integer
Дата
Msg-id 01C0DCAC.B3BB8330.mdavis@sevainc.com
обсуждение исходный текст
Ответ на Auto incrementing an integer  ("Sylte" <Sylte_@hotmail.com>)
Ответы system time
Список pgsql-sql
Try the serial data type or add "DEFAULT nextval('Invoice_s')" to the 
column definition where Invoice_s is the name of a sequence that you have 
created.

Hope this helps, Michael

-----Original Message-----
From:    Sylte [SMTP:Sylte_@hotmail.com]
Sent:    Monday, May 14, 2001 7:02 AM
To:    pgsql-sql@postgresql.org
Subject:    Auto incrementing an integer

How do I construct a datatype that autoincrement in postgreSQL?

Thanks
Sylte




---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command   (send "unregister YourEmailAddressHere" to
majordomo@postgresql.org)



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

Предыдущее
От: Philip Hallstrom
Дата:
Сообщение: Re: Auto incrementing an integer
Следующее
От: Guru Prasad
Дата:
Сообщение: How NULL is interpreted in Pgsql