diff --git a/reference/ibm_db2/functions/db2-bind-param.xml b/reference/ibm_db2/functions/db2-bind-param.xml index d59f46ec48..06b8a6c523 100644 --- a/reference/ibm_db2/functions/db2-bind-param.xml +++ b/reference/ibm_db2/functions/db2-bind-param.xml @@ -1,5 +1,5 @@ - + @@ -164,6 +164,83 @@ Peaches, dog, 12.3 ]]> + + Calling stored procedures with IN and OUT parameters + + The stored procedure match_animal in the following example accepts + three different parameters: + + + + an input (IN) parameter that accepts the name of the first animal as + input + + + + + an input-output (INOUT) parameter that accepts the name of the second + animal as input and returns the string TRUE if an + animal in the database matches that name + + + + + an output (OUT) parameter that returns the sum of the weight of the + two identified animals + + + + In addition, the stored procedure returns a result set consisting of the + animals listed in alphabetic order starting at the animal corresponding + to the input value of the first parameter and ending at the animal + corresponding to the input value of the second parameter. + + + +]]> + + &example.outputs; + + + + +