File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes java sql question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "java sql question" Watch "java sql question" New topic

java sql question

nikil shar
Ranch Hand

Joined: May 25, 2008
Posts: 116
hi all,
was reading through someones java code and i don't really understand the sql which is being constructed below :

i know what the ? is for but what does the '%s' do ??

thanks in advance.
Edwin Dalorzo
Ranch Hand

Joined: Dec 31, 2004
Posts: 961
Perhaps the code you mention was used in a Formatter.

For instance I could write somewhat like this:

Do you know if this is the case?

I agree. Here's the link:
subject: java sql question
It's not a secret anymore!