How do we call stored procedure using JDBC

How do we call stored procedure using JDBC?

- As with Statement objects, to call the stored procedure, you can call execute, executeQuery, or executeUpdate depending on how many ResultSet objects the procedure returns.
- However, if you are not sure how many ResultSet objects the procedure returns, call execute.
- The interface CallableStatement extends PreparedStatement. It is used to call stored procedures.
- Specify values for IN parameters just like you would with a PreparedStatement object by calling the appropriate setter method.
- However, if a stored procedure contains an OUT parameter, you must register it with the registerOutParameter method.
What is a thread? What are the advantages we derived by programming with thread?
What is a thread? - Threads allow programs to execute simultaneously. A thread is an independent path of execution in a program...
How to create a thread and start it running?
How to create a thread and start it running? - There are 2 ways in which a thread can be created...
How does thread’s stop method work
How does thread’s stop method work - Stop() method of thread stops the thread execution...
Post your comment