Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

pls tell how use sequence number  RSS feed

 
subbareddy nallamala
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1084
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simply use YOUR_SEQUENCE.NEXTVAL in you query


Thanks,
Shailesh
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!