Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   JAVA (https://www.clubdelphi.com/foros/forumdisplay.php?f=16)
-   -   PreparedStatement (https://www.clubdelphi.com/foros/showthread.php?t=35180)

gustavoh 03-09-2006 23:09:12

PreparedStatement
 
Estoy usando PreparedStatement y necesito saber como hacer
para recuperar el id del registro que inserto
para insertar uso el metodo executeUpdate()
y cuando le pongo un breakpoint y examino las variables
veo que hay una que es: lastInsertid="22", 22 es el id
que yo quiero recuperar por no se con que metodo tomarlo
gracias


La franja horaria es GMT +2. Ahora son las 08:44:22.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi