aspose file tools*
The moose likes JDBC 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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
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: 1081

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
Similar Threads
how to get?
How do I transfer a text file from server to client?
users of staruml ...need help
How to link Sequence Diagram with other seq diagrams
Hibernate: ID not set upon save