What are stored procedures? How to call them?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
how you will execute the many tables data
I have the choice of manipulating database data using a byte[] or a java.sql.blob. Which has best performance?
Does jdbctemplate close connection?
password, is stored in as plain text. What can I do to protect my passwords?
What is jdbc and its types?
What is the meaning of “dirty read” in the database?
Does JDBC support stored procedures?
Why do we use jdbc in java?
What is JDBC PreparedStatement?
what is CallableStatement and what is its usage?
What is an advantage of using the jdbc connection pool?
Is jdbc secure?