File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion 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
I agree. Here's the link:
subject: pls tell how use sequence number
It's not a secret anymore!