how to use CallableStatement?
specially how to use their index given ..
Answer Posted / 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 |
Post New Answer View All Answers
What are the different types of interfaces in the api component?
Does jpa use jdbc?
What is the benefit of having jdbcrowset implementation? Why do we need a jdbcrowset like wrapper around resultset?
Explain the difference between resultset and rowset in jdbc
What is the use of statement in jdbc?
How do I retrieve a whole row of data at once, instead of calling an individual ResultSet.getXXX method for each column?
What does the jdbc resultset interface?
What are the benefits of PreparedStatement over Statement?
what is the meaning of following code snippets Class c=class.forName(driverClassName); Driver d=(driver)c.newInstance();
What are restrictions on triggers?
What is statement and preparedstatement in java?
What are drivers available?
What is a jdbc connection?
What are 4 drivers available in JDBC? At what situation are four of the drivers used?
How can I know when I reach the last record in a table, since JDBC doesn't provide an EOF method?