Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

When do we use execute method in java jdbc?

0 Answers  


Are all the required JDBC drivers to establish connectivity to my database part of the JDK?

0 Answers  


Diff. types of triggers..

4 Answers   Logica CMG,


What is jdbc odbc in java?

0 Answers  


What is odbc and jdbc drivers?

0 Answers  


How can you retrieve data from the resultset using jdbc?

0 Answers  


What is a datasource in java?

0 Answers  


What is the difference between client and server database cursors?

0 Answers  


What type of driver you use in real-time projects?

3 Answers  


What is metadata in programming?

0 Answers  


what is call level interface?

1 Answers  


what are the Different types of exceptions in JDBC?

1 Answers  


Categories