GETTING INFO FROM SEQUENCE OBJECTS - Mailing list pgsql-novice

From JORGE MALDONADO
Subject GETTING INFO FROM SEQUENCE OBJECTS
Date
Msg-id f03943a00911021116j7c82f3cbsf9c062626a8fff45@mail.gmail.com
Whole thread Raw
Responses Re: GETTING INFO FROM SEQUENCE OBJECTS
Re: GETTING INFO FROM SEQUENCE OBJECTS
List 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 by date:

Previous
From: Christopher Frank
Date:
Subject: Can't get list of databases with \list
Next
From: Tom Lane
Date:
Subject: Re: Can't get list of databases with \list