• Post Reply Bookmark Topic Watch Topic
  • New Topic

Difference Between PreparedStatement and Statement and CollableStatement?  RSS feed

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to know the Difference Between PreparedStatement and Statement and CollableStatement?
 
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then you should read the JavaDocs for these classes. Anything you don't understand after that feel free to post and I'm sure someone will try to explain.
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this discussion to "JDBC" forum...
 
author & internet detective
Marshal
Posts: 37698
575
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Peru,
CallableStatements are for stored procedures. PreparedStatements are for regular queries (where you substitute in parameters.) For more info, look at the JavaDocs that Paul referenced.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!