wood burning stoves*
The moose likes JDBC and the fly likes java sql question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "java sql question" Watch "java sql question" New topic
Author

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?


 
It is sorta covered in the JavaRanch Style Guide.
 
subject: java sql question