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 are stored procedures? How to call them?

Answer Posted / hazarath k

Stored Procedure is a set of precompiled SQL statements
(i.e., ready for execution), which will be executed at
Database server(backend).
By using the Callable Statement,We can call the Stored
Procedure from front-end.Callable is an interface.Every
vendor can provide their own implementation classes for
this intercace.By using this Callable Statement, we can
call the Stored Procedure/Stored Function.

Ex/Syntax:
Connection con=DriverManager.getConnection("---
","UID","PWD");
CallableStatement cstmt=con.prepareCall('{call
ProcedureName}');

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is addbatch jdbc?

1122


What is jndi lookup?

989


Why should we close database connections in java?

1194


Is it possible to connect to multiple databases? Using single statement can we update or extract data from two or three or many databases?

1145


How can we store the file in the oracle database?

986


What do you understand by DDL and DML statements?

977


Write an sql to find all records having all numeric characters in a field ?

1028


What are the different types of lockings in jdbc?

975


what is the meaning of following code snippets Class c=class.forName(driverClassName); Driver d=(driver)c.newInstance();

5124


What is the return type of execute, executequery and executeupdate?

1163


What are types of resultset?

1027


Which type of driver is unique in jdbc?

1031


What is the use of setFetchSize() and setMaxRows() methods in Statement?

1043


What is db client?

1019


How can you create jdbc statements?

1017