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...


what is callable statement?

Answers were Sorted based on User's Feedback



what is callable statement?..

Answer / harish

the JDBC Callable statement provides a mechanism to call
stored procedures in a standardized,database independent
way. The JDBC callable statement hides the differences in
stored procedure implementation,execution and parameter
handling from Java applications.

Is This Answer Correct ?    46 Yes 5 No

what is callable statement?..

Answer / devarathnam c,kotagudibanda(po

Hi... CallableStatement : It is an interface in JDBC
API,which can be used to calling the storedprocedures and
functions in backend like oracle,sybase.

Syntax:
CallableStatement cst=con.prepareCall("{call <procedure
name>(?,?)}");

Is This Answer Correct ?    34 Yes 6 No

what is callable statement?..

Answer / sanjeev gupta

Callable Statemnt Example:- Here we prsent a stored
procedure fetuser(int userid) taht takes user id as
parameter and returns the first_name and last_name column
of the user.
try {
CallableStatement callablestmt =
con.prepareCall("{call fetchuser(?)}");
callablestmt.setInt(1,1);
ResultSet rs1 = callablestmt.executeQuery();
while(rs1.next())
{
String fname = rs1.getString("FIRST_NAME");
String lname = rs1.getString("LAST_NAME");
out.println(fname+" "+lname+ "<br />");
}

} catch (SQLException e) {
e.printStackTrace();
}

Is This Answer Correct ?    21 Yes 6 No

what is callable statement?..

Answer / manojkumar.l

It's using for execute stored procedure and also execute
multiple select statement

Is This Answer Correct ?    15 Yes 7 No

what is callable statement?..

Answer / chandrarekha

connection statement provides the preparecall() method
which is used to create callabale statement....and it's
derived from the prepared statement interface...it can be
used to create stored procedures or to use the existing
stored procedures

Is This Answer Correct ?    19 Yes 12 No

what is callable statement?..

Answer / bama

the JDBC Callable statement provides a mechanism to call
stored procedures in a standardized,database independent
way. The JDBC callable statement hides the differences in
stored procedure implementation,execution and parameter
handling from Java applications.

Is This Answer Correct ?    6 Yes 5 No

Post New Answer

More JDBC Interview Questions

What are different types of ResultSet?

0 Answers  


What is the exception thrown by JDBC ?

7 Answers  


Which Driver is preferable for using JDBC API in Applets?

2 Answers  


What are static and dynamic queries?

1 Answers  


How a driver can be loaded?

1 Answers  


I have getting problem to calling stored procedure from Mysql through JSP. Please help me.

1 Answers  


What do you understand by jdbc driver and explain its types?

0 Answers  


Is possible to open a connection to a database with exclusive mode with JDBC?

0 Answers  


What is jdbc url for mysql?

0 Answers  


How we say that PreparedStatment is Precompiled? where it will be compiled?

4 Answers   Logica CMG,


Is there another way of dealing with the result set that could execute faster?

0 Answers  


Statement, PrepareStatement and Callable all these are interfaces. Thought it is a interface how come we are creating objects and calling methods("preparestatement()") in it. In which class this method is defined. Please let me know. Thanks in advance. example: PreparedStatement pre = con.prepareStatement( "UPDATE COFFEES SET SALES = ? WHERE COF_NAME LIKE ?");

2 Answers  


Categories