how to use CallableStatement?
specially how to use their index given ..
Answer Posted / suresh
CallableStatement object is used to call the stored
procedure and stored procedure is nothing but it's block of
code and it's identified unique name
ex
CallableStatement cs=con.prepareCall();
cs.executeUpdate(Call"{procedure name}");
con is a Connection object
It has three parameter
IN
OUT
INOUT
IN parameter used to store any value to stored procedure
using setXX() method..
OUT parameter used to get the information or values from the
stored procedure using getXX() method,that object to
registered using registerOutParameter()
INOUT used to both store and get the information...
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
What is preparedstatement in jdbc?
What do you mean by two phase commits?
What are the jdbc api components?
What is database deadlock ? How can we avoid them?
Explain the difference between resultset and rowset in jdbc
How can I connect mysql or oracle with java?
What are the differences between setmaxrows(int) and setfetchsize(int)?
What is a jdbc connection?
Does jdbc use ssl?
What is correlated subquery?
What is the return type of execute, executequery and executeupdate?
How can I retrieve a String or other object type without creating a new object each time?
Explain jdbc savepoint?
How does jdbc work?
Is jdbc connection secure?