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 |
What is the difference between jdbc and jndi?
What are the differences between resultset and rowset?
How do I stop nullpointerexception?
How can you create jdbc statements?
How does a custom RowSetReader get called from a CachedRowSet?
What is the exception thrown by JDBC ?
What are the jdbc drivers in java?
What are the functions of the jdbc connection interface?
What is getconnection method in java?
Is it possible to connect to multiple databases simultaneously?
What is execute in java?
What are dml and ddl?