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 > Re: Get the las...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 7 Topic 3405 of 3717
Post > Topic >>

Re: Get the last inserted id

by Lew <lew@[EMAIL PROTECTED] > Apr 27, 2008 at 04:09 PM

Nacef LABIDI wrote:
> Nice idea but how can I use this in a frontend that I am developing 
> using Delphi and ADO objects ?

I don't know those platforms, but in Java you can get a return value from
an 
arbitrary command, not just queries, if they return a ResultSet.  In this
case 
the JDBC driver should bring back a one-row, one-column result set.

If your environment doesn't have something similar, you should be able to 
select currval() as others have suggested, using a standard query from
your 
platform.

-- 
Lew
 




 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
tan12V112 Mon Oct 13 4:24:19 CDT 2008.