GETTING INFO FROM SEQUENCE OBJECTS

Поиск
Список
Период
Сортировка
От JORGE MALDONADO
Тема GETTING INFO FROM SEQUENCE OBJECTS
Дата
Msg-id f03943a00911021116j7c82f3cbsf9c062626a8fff45@mail.gmail.com
обсуждение исходный текст
Ответы Re: GETTING INFO FROM SEQUENCE OBJECTS  (Brian Modra <brian@zwartberg.com>)
Re: GETTING INFO FROM SEQUENCE OBJECTS  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Список pgsql-novice
How do I use the functions to get data from sequence objects?
For example, I need to know what is the value of a serial field after inserting a new record; the one assigned to the record just inserted.
 
I have tried the psql interfase with the following:
select currval('restaurant.ordenes_clave_seq');
but I get a message telling me that "currval of sequence "ordenes_clave_seq" is not yet defined in this session.
 
Please advice.
 
Respectfully,
Jorge Maldonado

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

Предыдущее
От: Christopher Frank
Дата:
Сообщение: Can't get list of databases with \list
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Can't get list of databases with \list