how to use CallableStatement?
specially how to use their index given ..



how to use CallableStatement? specially how to use their index given ....

Answer / 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

More JDBC Interview Questions

What is jdbc class forname?

0 Answers  


what is metadata and it's use?

3 Answers  


What is metadata in programming?

0 Answers  


What is jdbc dialect?

0 Answers  


How to store images in database?

2 Answers  






What are the considerations for deciding on transaction boundaries?

0 Answers  


How can you retrieve data from the resultset using jdbc?

0 Answers  


is java pure object oriented or not ?

7 Answers  


How warnings are retrieved in JDBC?

1 Answers  


Does sql allow null values ?

0 Answers  


What is “dirty read” in JDBC? Which isolation level prevents dirty read?

0 Answers  


When does the result for an sql statement return null?

0 Answers  


Categories