aspose file tools*
The moose likes JDBC and the fly likes callablestatement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "callablestatement" Watch "callablestatement" New topic
Author

callablestatement

aitex abex
Greenhorn

Joined: Jun 02, 2006
Posts: 20
callablestatement.clearParameters();
callablestatement.registerOutParameter(1, 12);
callablestatement.setString(2, s);
callablestatement.setString(3, s1);
callablestatement.setString(4, s2);
callablestatement.execute();
s3 = callablestatement.getString(1);
callablestatement.close();

In the above code what callablestatement.registerOutParameter(1, 12);
do.I am not able to understand it if any body can explane pls send me solution.
Naseem Khan
Ranch Hand

Joined: Apr 25, 2005
Posts: 809
Callable Statement


Asking Smart Questions FAQ - How To Put Your Code In Code Tags
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: callablestatement
 
Similar Threads
Using CallableStatement to access an Oracle Proc
How to access Stored Procedure
Calling stored procedures
DataDirect Driver : Error " [DataDirect][SQLServer JDBC Driver]Invalid parameter binding(s)"
wrong number or types of arguments in call to 'P_RETRIEVE_OPPTY_ORDER_STATUS'