File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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?


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java sql question
 
Similar Threads
how to get column information for a given sql string
Java mySql update statement
UML and PL/SQL
java/MYSQL Serious speed problem.
using more than one sql statements in a preparedstatement