aspose file tools
The moose likes JDBC and Relational Databases and the fly likes pls tell how use sequence number Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "pls tell how use sequence number" Watch "pls tell how use sequence number" New topic

pls tell how use sequence number

subbareddy nallamala

Joined: Mar 08, 2006
Posts: 4
i am generated one sequesnce in oracle,
but i want to use the sequence with the prpared statemebt objects
i am using type4 driver
pls tell the procedyre how to do by using java preparedStatement

Thanks in advance
Shailesh Chandra
Ranch Hand

Joined: Aug 13, 2004
Posts: 1082

Simply use YOUR_SEQUENCE.NEXTVAL in you query


Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
It is sorta covered in the JavaRanch Style Guide.
subject: pls tell how use sequence number