Re: About auto_increment

Поиск
Список
Период
Сортировка
От Raymond O'Donnell
Тема Re: About auto_increment
Дата
Msg-id 459A8020.22087.93F457@rod.iol.ie
обсуждение исходный текст
Ответ на About auto_increment  (Yesh <rengesh2k3@yahoo.co.in>)
Список pgsql-general
On 1 Jan 2007 at 21:21, Yesh wrote:

> I need to know how to increment a primary key field automatically in
> run time.

Use type SERIAL as your primary key - here is the relevant page in
the docs:

http://www.postgresql.org/docs/8.2/static/datatype-
numeric.html#DATATYPE-SERIAL

HTH,

--Ray.


----------------------------------------------------------------------

Raymond O'Donnell
Director of Music, Galway Cathedral, Galway, Ireland
rod@iol.ie
----------------------------------------------------------------------



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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: About auto_increment
Следующее
От: "Raymond O'Donnell"
Дата:
Сообщение: Re: Geographical redundancy