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
How to set multiple values in PrepareStatement while using "IN" in the query
Gaurav Goyal
Greenhorn
Posts: 6
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
For the foll prepared stmt
ps=Connection.prepareStatement(select * from EMPLOYEE
where emp_name IN ? );
Suppose i have 3 names to find "black", "brown" and "green"
what shd I pass to setString method
ps.setString(1,_______);
Jan Cumps
Bartender
Posts: 2661
19
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The JavAranch article
Batching Select Statements in JDBC
by Jeanne Boyarsky proposes some approaches to handle this.
Regards, Jan
OCUP UML fundamental and ITIL foundation
Self destruct mode activated. Instructions for deactivation encoded in this tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Multiple Values in single parameter marker
How to use preparedStatements to store data to two different tables
Severe Error: Syntax
Updating Problem
Problem in inserting special characters
More...