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 are the basic exceptions in jdbc?
What is the function of drivermanager class?
How can I get or redirect the log used by DriverManager and JDBC drivers?
How java can be connected to a database?
Result set’s index starts with 0 or 1?
what is the meaning of following code snippets Class c=class.forName(driverClassName); Driver d=(driver)c.newInstance();
Why is jdbc used?
Differentiate between type_scroll_insensitive and type_scroll_sensitive.
What is jdbc connection interface?
What is jdbc class forname?
What is the difference between execute, executeQuery, executeUpdate?
What is “dirty read” in JDBC? Which isolation level prevents dirty read?
What is the use of statement in jdbc?
What is jdbc driver manager?
What is connection pooling and why it is used?