Get returning value from a stored procedure in C# : CSharp : Procedure Function SQL / MySQL


SQL / MySQL » Procedure Function » CSharp »

 

Get returning value from a stored procedure in C#


 


CallableStatement PreparedFunc = MyConnect.prepareCall("{ ? = call isodd( ? ) }");
PreparedFunc.registerOutParameter(1, Types.INTEGER);

PreparedFunc.setInt(1, aNumber);
PreparedFunc.execute();

if (PreparedFunc.getInt(1== 1)
     System.out.println(aNumber + " is odd");
else
     System.out.println(aNumber + " is even");



        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

SQL / MySQL

 Navioo Procedure Function
» CSharp