|
wb_psql_get_out_param | 'Prepared' SQL Functions |
This function returns the length of an OUT or INOUT parameter whose index is specified in the out_param_index parameter. The SQL statement with the psql identifier must have already be successfully executed by the wb_psql_execute function.
Returns the length of the OUT or INOUT parameter of the SQL statement if succesful, otherwise FALSE.
Send an IN parameter value to the SQL Server, execute the statement, get the OUT parameters count, get the length of the OUT parameter and read the OUT parameter value.
$psql=wb_psql_prepare($connection,"SELECT name INTO ? FROM Person WHERE ID=?"); wb_psql_send_param($psql, 1 /*second parameter*/, 123 /*parameter value*/); wb_psql_execute($psql); echo "OUT parameter count: ".wb_psql_out_param_count($psql)."\n"; echo "length of the first OUT parameter: ".wb_psql_out_param_length($psql,0)."\n"; echo "value of the first OUT parameter: ".wb_psql_get_out_param($psql,0)."\n";
wb_psql_get_out_param | 'Prepared' SQL Functions |