Re: system table storing sequence attributes

Поиск
Список
Период
Сортировка
От A. Kretschmer
Тема Re: system table storing sequence attributes
Дата
Msg-id 20070522132243.GI32759@a-kretschmer.de
обсуждение исходный текст
Ответ на Re: system table storing sequence attributes  ("Sabin Coanda" <sabin.coanda@deuromedia.ro>)
Список pgsql-sql
am  Tue, dem 22.05.2007, um 16:12:06 +0300 mailte Sabin Coanda folgendes:
> I close the session, and I open another one.
> 
> I call SELECT currval( pg_get_serial_sequence('"tbFoo"','ID') ), and I get 
> the error again:
> ERROR: currval of sequence "tbFoo_ID_seq" is not yet defined in this session
> SQL state: 55000

Try 'select last_value from "tbFoo_ID_seq";' instead.


A. Kretschmer
-- 
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net


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

Предыдущее
От: "Sabin Coanda"
Дата:
Сообщение: Re: system table storing sequence attributes
Следующее
От: "Sabin Coanda"
Дата:
Сообщение: Re: system table storing sequence attributes