Re: checking currval

Поиск
Список
Период
Сортировка
От Jodi Kanter
Тема Re: checking currval
Дата
Msg-id 3EF07624.7010904@virginia.edu
обсуждение исходный текст
Ответ на checking currval  (Jodi Kanter <jkanter@virginia.edu>)
Ответы Re: checking currval  ("scott.marlowe" <scott.marlowe@ihs.com>)
Список pgsql-admin
I tried that and it did not work. It won't be a problem in the code since it appears that we are always doing a nextval prior to currval, but I was just wondering about how to do it while in a psql session.

Weiping He wrote:
select last_value from your_sequence;

Jodi Kanter wrote:

I cannot view the currval because it is not set in the session yet. Is there a way to set it without having to increment the value?
Thanks
Jodi




---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

--

_______________________________
Jodi L Kanter
BioInformatics Database Administrator
University of Virginia
(434) 924-2846
jkanter@virginia.edu


 

 

 


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

Предыдущее
От: Weiping He
Дата:
Сообщение: Re: checking currval
Следующее
От: "Kuhn, Dylan K (4520500D)"
Дата:
Сообщение: Re: configure readline error