Re: Sequence query

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: "Tamara D(dot) Blum" <tblum(at)jus(dot)gov(dot)ar>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Sequence query
Date: 2001-09-15 03:17:35
Message-ID: 20010915131735.C11730@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Sep 14, 2001 at 01:19:42PM -0300, Tamara D. Blum wrote:
> I need to ask for the following secuence number for a field.
> I am connecting PostgreSQL with an ODBC Driver and with ADO.
> If i ask for the value of the field after updating the recordset, i get it is null (and it can't be), so i read how to ask for information about sequences and i founded that "SELECT * FROM objetos_ID_seq" would be ok, but i got an error: "The Relation 'objetos_Id_seq' does not exist".
>
> What's wrong ? Is there any problem with my sequence ?

select currval('my_sequence');

--
Martijn van Oosterhout <kleptog(at)svana(dot)org>
http://svana.org/kleptog/
> Magnetism, electricity and motion are like a three-for-two special offer:
> if you have two of them, the third one comes free.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Culley Harrelson 2001-09-15 03:30:06 Re: Fwd: Re: unicode in 7.1
Previous Message Alex Pilosov 2001-09-15 02:38:00 CLUSTER (was Re: get certain # of recs)