hi, what is the difference between prepared statement and the callable statements ? Thanks and regards Vishnu
Joined: Sep 07, 2000
Prepared Statement is used to execute SQL query whereas Callbale Statement is used to execute Stored Procedures.
Snigdha<br />Sun Certified Programmer for the Java™ 2 Platform
Joined: Mar 21, 2002
That's right, and a stored procedure is , as written in the MySQL manual:
A stored procedure is a set of SQL commands that can be compiled and stored in the server. Once this has been done, clients don't need to keep re-issuing the entire query but can refer to the stored procedure. This provides better performance because the query has to be parsed only once, and less information needs to be sent between the server and the client. You can also raise the conceptual level by having libraries of functions in the server.
Joined: Mar 31, 2010
What if I use Callable statements to execute SQL query, is it okay?
Is prepared statement better than callable statements to execute SQL query?