7 Replies Latest reply: Aug 24, 2009 11:16 PM by Lars Breddemann RSS

how to get seq.nextval as a result of an insert statement?

Clovis Wichoski
Currently Being Moderated

Hi,

 

on Oracle using sequences we can use follow command to issue an insert command and get the nextval used on this insert:

 

CALL INSERT INTO "TEST2550_ENTITY" ("ID","NAME") VALUES ("TEST2550_ENTITY_SEQ".nextval,?) RETURNING "ID" INTO ?

 

there is a way to do same thing in MaxDB using JDBC?

 

thanks for any tip

 

Clóvis