Re: [Re: PRIMARY KEY] - Mailing list pgsql-sql

From Phillip Smith
Subject Re: [Re: PRIMARY KEY]
Date
Msg-id 1173480289.4925.77.camel@phillip-desktop
Whole thread Raw
In response to Re: [Re: PRIMARY KEY]  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-sql
Of course - my bad... That's the main reason I upgraded to 8.2! <br /><br /> On Fri, 2007-03-09 at 09:03 -0600, Bruno
WolffIII wrote: <blockquote type="CITE"><pre>
 
<font color="#000000">On Wed, Mar 07, 2007 at 23:20:12 +1100,</font>
<font color="#000000">  Phillip Smith <<a href="mailto:fukawi2@iinet.net.au">fukawi2@iinet.net.au</a>>
wrote:</font>
<font color="#000000">> If you actually need to know the value of N_GEN in your ASP application,</font>
<font color="#000000">> you will need to query the database first and select the NEXTVAL from</font>
<font color="#000000">> the sequence that the "serial" data type will create, then use that</font>
<font color="#000000">> returned value in your insert - ie, DON'T exclude it from the insert,</font>
<font color="#000000">> otherwise it will default to NEXTVAL again and return a different value.</font>

<font color="#000000">In 8.2, you can also use the RETURNING clause to get those values.</font>
</pre></blockquote><br /><p><b>*******************Confidentiality and Privilege Notice*******************</b><p> The
materialcontained in this message is privileged and confidential to the addressee. If you are not the addressee
indicatedin this message or responsible for delivery of the message to such person, you may not copy or deliver this
messageto anyone, and you should destroy it and kindly notify the sender by reply email. <p> Information in this
messagethat does not relate to the official business of Weatherbeeta must be treated as neither given nor endorsed by
Weatherbeeta.Weatherbeeta, its employees, contractors or associates shall not be liable for direct, indirect or
consequentialloss arising from transmission of this message or any attachments <br /> 

pgsql-sql by date:

Previous
From: gherzig@fmed.uba.ar
Date:
Subject: Re: index not being used. Why?
Next
From: "Ezequias Rodrigues da Rocha"
Date:
Subject: Alternative Serial