Re: [GENERAL] Simple problem? - Mailing list pgsql-general

From
Subject Re: [GENERAL] Simple problem?
Date
Msg-id Pine.LNX.4.10.10003021109310.11416-100000@picasso.realtyideas.com
Whole thread Raw
In response to Re: [GENERAL] Simple problem?  (Peter Eisentraut <e99re41@DoCS.UU.SE>)
List pgsql-general

On Thu, 2 Mar 2000, Peter Eisentraut wrote:

> On Wed, 1 Mar 2000, Stan Jacobs wrote:
>
> > 2. How do I get the order_id from the record I just wrote?
>
> You have to select it back out. A select on max(order_id) might do, but
> you might get caught if someone else does updates on your table as well. I
> am personally not so fond of serial columns because of this problem.
what? if you serial type, you can get it by curval(seqname) (see doc for
details).  Peter, how can You make such a mistake :-) no sleep for a week?


pgsql-general by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: [GENERAL] Performance on WindowsNT
Next
From: "Ross J. Reedstrom"
Date:
Subject: Re: [GENERAL] Simple problem?