This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes JDBC and the fly likes Statement and PreparedStatement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Statement and PreparedStatement" Watch "Statement and PreparedStatement" New topic
Author

Statement and PreparedStatement

Arun Kumar
Ranch Hand

Joined: Jan 21, 2005
Posts: 129

When should i use Statement and when should i use PreparedStatement?
Purushoth Thambu
Ranch Hand

Joined: May 24, 2003
Posts: 425
Check the Ranch FAQ on prepared statement.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Statement and PreparedStatement
 
Similar Threads
PreparedStatement Vs Statement
Should You Always Use PreparedStatement instead of Statement?
When to close static PreparedStatements
Update Problem
SQL query not giving any result