Quantcast
Channel: SCN : Popular Discussions - SAP MaxDB
Viewing all articles
Browse latest Browse all 1545

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

$
0
0

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

 


Viewing all articles
Browse latest Browse all 1545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>