Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How can i get the ID of the last inserted record?

843840Jun 27 2008 — edited Jun 29 2008
in php i can use something like [mysql_insert_id()|http://sg2.php.net/mysql_insert_id] to do this, in jsp how can i do it?

i want to do something like after i insert a record, view it in a view record page. so i will need the insert id
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 27 2008
Added on Jun 27 2008
12 comments
2,378 views