Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Sql > Get the last in...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 3405 of 3599
Post > Topic >>

Get the last inserted id

by nacef.l@[EMAIL PROTECTED] ("Nacef LABIDI") Apr 11, 2008 at 07:23 PM

------=_Part_10955_20146733.1207934584805
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi all,

I was wondering if postgres can return the last ID inserted for a table
which the primary key is autoincremented. I need to retrieve this ID in my
code to continue processing on that inserted row.

Thanks to all

------=_Part_10955_20146733.1207934584805
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div>Hi all,</div>
<div>&nbsp;</div>
<div>I was wondering if postgres can return the last ID inserted for a
table which the primary key is autoincremented. I need to retrieve this ID
in my code to continue processing on that inserted row.</div>
<div>&nbsp;</div>
<div>Thanks to all</div>

------=_Part_10955_20146733.1207934584805--
 




 7 Posts in Topic:
Get the last inserted id
nacef.l@[EMAIL PROTECTED]  2008-04-11 19:23:04 
Re: Get the last inserted id
scott.marlowe@[EMAIL PROT  2008-04-11 11:41:41 
Re: Get the last inserted id
nacef.l@[EMAIL PROTECTED]  2008-04-11 19:43:56 
Re: Get the last inserted id
Lew <lew@[EMAIL PROTEC  2008-04-27 16:09:41 
Re: Get the last inserted id
andreas.kretschmer@[EMAIL  2008-04-11 19:48:06 
Re: Get the last inserted id
ajs@[EMAIL PROTECTED] (A  2008-04-11 13:57:44 
Re: Get the last inserted id
Xharon <sahapasci@[EMA  2008-04-28 12:41:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Thu Jul 24 12:51:02 CDT 2008.