Re: OID stuff

From: Derek Clarkson <dhc(at)bigpond(dot)net(dot)au>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: OID stuff
Date: 2003-01-29 23:36:12
Message-ID: 200301301036.12036.dhc@bigpond.net.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Doh! of course. Thanks.

On Thursday 30 January 2003 10:17, you wrote:
> Derek,
>
> > In Postgres, I have to use the 'get diagnostics var = result_oid'
> > statement
>
> to
>
> > get the oid of the new record, then do a select on the table to get the
> > sequence column value for the new record using this oid, to obtain the
> > new sequence value.
>
> Um, what's wrong with "select currval('sequence_name')" ?

--
Derek Clarkson
Web: http://users/bigpond/net/au/drekka

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Josh Berkus 2003-01-29 23:38:36 Re: New and investigating
Previous Message Juliet May 2003-01-29 23:35:51 Re: Good books?