Quantcast
Channel: DigitalOcean Community Tutorials
Viewing all articles
Browse latest Browse all 136

JDBC PreparedStatement IN clause alternative approaches

$
0
0
If you are using JDBC API to run queries on database, you should know that PreparedStatement is the better choice than Statement. However since JDBC API allows only one literal for one “?” parameter, PreparedStatement doesn’t work for IN clause queries. So if we need to execute a database query …

Viewing all articles
Browse latest Browse all 136

Trending Articles