posted 20 years ago
CallableStatement objects are created with the Connection method prepareCall. The example below creates an instance of CallableStatement that contains a call to the stored procedure getTestData, which has two arguments and no result parameter:
CallableStatement cstmt = con.prepareCall(
"{call getTestData(?, ?)}");
Whether the ? placeholders are IN, OUT, or INOUT parameters depends on the stored procedure getTestData.
SCJP,SCJD SCEA, SCWCD, SCBCD<br />OCP DBA 8i / 9i<br />CISSP, PMP, PHR<br />CCNA, CCDA <br /><a href="http://www.certgear.com" target="_blank" rel="nofollow">http://www.certgear.com</a>