Get returning value from a stored procedure in C# : CSharp « Procedure Function « MySQL Tutorial






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");








11.53.CSharp
11.53.1.Calling a stored procedured in C#
11.53.2.Get returning value from a stored procedure in C#