Skip to main content

Run stored procedure

Call a stored procedure or function with input, output and in-out parameters; return the rows it produces, its output values and a function's return value.

Command in the Database toolkit · id ooa.database/call_procedure · 7 inputs (1 required), 4 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
ProcedureStringYesProcedure name, optionally schema.name.
ParametersListNoParameters in the procedure's order: a plain value is an input; {"value": v, "direction": "out" or "inout", "type": "varchar|integer|bigint|decimal|double|boolean|date|timestamp", "name": "p_total"} declares an output.
Maximum rowsNumberNo100000Safety limit on rows returned.
SessionStringNodbSession name.
Query timeout (seconds)NumberNo0Cancel the statement after this many seconds; 0 waits as long as the step allows.
Returns valueBooleanNofalseCall it as a function ({? = call ...}) and return its value as out_parameters.return.
Return typeStringNoSQL type of the function's value; varchar when empty.

Outputs​

OutputTypeWhat it is
tableTableFirst result set, or an empty table.
row_countNumberRows in the result table.
rows_affectedNumberRows changed, when the database reports it; otherwise -1.
out_parametersDictionaryOutput and in-out values by parameter name (or position 1, 2 ... when unnamed); the function's value as "return".