Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JDBC and Relational Databases
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JDBC and Relational Databases
problem with sequence
gvasu kumar
Greenhorn
Posts: 6
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hi all,
in my application i am using the Oracle Sequence for generating the sequence of numbers.how can i invoke the sequence from the
JDBC
.
Thanx in advance
gvasu kumar
Greenhorn
Posts: 6
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
sorry i forgot to say i am using preparedstatement
David O'Meara
Rancher
Posts: 13459
I like...
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I believe it is 'select <sequence_name>.next from dual' but I'd have to go check. I'm sure someone will correct me soon if I'm wrong.
David O'Meara
Rancher
Posts: 13459
I like...
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Not quite right, it should be 'nextval', not 'next'.
look! it's a bird! it's a plane! It's .... a teeny tiny ad
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Use sequence or select max(field) from table to get next id?
Is it necessary to draw the picture of jsp for part II?
Alternate flows -- sequence diagrams
"JSF compliant" diagram for component diragam
sequence diagram with actor
More...