Re: How to obtain a sequence's increment value from the system catalog

Поиск
Список
Период
Сортировка
От Ragnar
Тема Re: How to obtain a sequence's increment value from the system catalog
Дата
Msg-id 1183971909.5778.64.camel@localhost.localdomain
обсуждение исходный текст
Ответ на How to obtain a sequence's increment value from the system catalog  ("Wouter Gazendam" <wouter@cosmocows.com>)
Ответы Re: How to obtain a sequence's increment value from the system catalog  ("Wouter Gazendam" <wouter@cosmocows.com>)
Список pgsql-general
have you tried:
select * from my_seq;

or are you looking for the functions currval() or lastval()
http://www.postgresql.org/docs/8.2/interactive/functions-sequence.html

gnari


On mán, 2007-07-09 at 09:43 +0200, Wouter Gazendam wrote:
> Hi,
>
> I'd like to query a sequence's increment value from the system
> catalog. I tried looking at
> http://www.postgresql.org/docs/8.1/static/catalog-pg-class.html but
> I'm stuck here.
>
> Any ideas/help would be appreciated.
>
> Thanks,
>
> Wouter Gazendam


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

Предыдущее
От: Ragnar
Дата:
Сообщение: Re: Database Insertion commitment
Следующее
От: "Jasbinder Singh Bali"
Дата:
Сообщение: Re: Database Insertion commitment