What are stored procedures? How to call them?

Answers were Sorted based on User's Feedback



What are stored procedures? How to call them?..

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

What are stored procedures? How to call them?..

Answer / guest

Stored procedures are stored programs in jdbc.pl/sql is a
stored procedure.they can be called from java by callable
statement.
CallableStatement st=con.prepareCall("{----}");

Is This Answer Correct ?    0 Yes 0 No

What are stored procedures? How to call them?..

Answer / subbu

A Stored procedure is a collection of sql statements that
are stored under a name & executed.when you create a stored
procedure all the steps like parsing,checking,compiling etc
are carried out.They can be called from java by using
prepareCall().

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JDBC Interview Questions

State the three different ways in which you can create a table?

0 Answers  


What is the difference between ExecuteUpdate and ExecuteQuery?

1 Answers   Exilant,


i am user who logined the application..after that another valid user will also logind..so that is it neccessary to create jdbc connection for each and every user...plz explain it with proper answer...plz help me

5 Answers   IBM,


How to retrieve warnings in jdbc?

0 Answers  


what is the best way, in terms of performance, to do multiple insert/update statements, a PreparedStatement or Batch Updates?

2 Answers  






Is jdbc a framework?

0 Answers  


Where is jdbc used?

0 Answers  


What are different parts of a url?

0 Answers  


Explain different types of locks in jdbc?

0 Answers  


How to insert and delete a row programmatically? (new feature in JDBC 2.0)

0 Answers  


How many packages are available in jdbc api?

0 Answers  


What are dml and ddl?

0 Answers  


Categories