KyaPoocha.com

Huge Collection of Interview Questions


How do you call a stored procedure from JDBC? 

The first step is to create a CallableStatement object. As with Statement an and PreparedStatement objects, this is done with an open onnection object. A CallableStatement object contains a call to a stored procedure.

CallableStatement cs = con.prepareCall(”{call SHOW_SUPPLIERS}”);
ResultSet rs = cs.executeQuery();



If you liked this question/asnwer, make sure you
Subscribe to KyaPoocha.com RSS feed!


BOOKMARK THIS : BlinkList | del.icio.us | Digg it | Furl | reddit | StumbleUpon | Yahoo MyWeb |