Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

JDBC%20Interview%20Questions%20and%20Answers

Question: How do you call a stored procedure from JDBC?
Answer: The first step is to create a CallableStatement object. As with Statement an and PreparedStatement objects, this is done with an open
Connection object. A CallableStatement object contains a call to a stored procedure.
CallableStatement cs = con.prepareCall("{call SHOW_EMPLOYEES}");
ResultSet rs = cs.executeQuery();
Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook