Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Prepared Statement

 
sreedhar Lackka
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Can we use Prepared Statement to execute a stored proc? If yes how and what is the difference between Callable Stmt and Prepared statement.

Thanks,
Sree
 
Aneesh Vijendran
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. You have to use CallableStatement (Though CallableStatement is a SubInterface of PreparedStatement)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic