From 7b9bc55d0ec3a968faa74130594fc62ce2f80f38 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Wed, 5 Oct 2005 21:00:31 +0000 Subject: [PATCH] Add example for all parameter types to db2_bind_param(). git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@197697 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../ibm_db2/functions/db2-bind-param.xml | 79 ++++++++++++++++++- 1 file changed, 78 insertions(+), 1 deletion(-) 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; + + + + +