Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> How to select the last item's ID

How to select the last item's ID

From: David Lee <pritino2020_at_yahoo.com.tw>
Date: Tue, 4 Sep 2001 20:50:47 +0800
Message-ID: <9n2i6h$2n5t1$1@news.shem.etwebs.com>


After I inserted a row of data, how do I retrieve the auto-increment ID of this row ? Because there might be another SQL script also inserting into this table at the same time, it is not guaranteed that I will get the correct ID by selecting right after inserting. Is there a function for this? Thousands of appreciation!!!

Please tell me where I should post this question if I post the wrong newsgroup, thanks!! Received on Tue Sep 04 2001 - 07:50:47 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US