CALL
CALL
7
SQL - Language Statements
CALL
invoke a procedure
CALL name ( [ argument ] [, ...] )
Description
CALL executes a procedure.
If the procedure has output arguments, then a result row will be returned.
Parameters
name
The name (optionally schema-qualified) of the procedure.
argument
An argument for the procedure call.
See for the full details on
function and procedure call syntax, including use of named parameters.
Notes
The user must have EXECUTE privilege on the procedure in
order to be allowed to invoke it.
To call a function (not a procedure), use SELECT instead.
If CALL is executed in a transaction block, then the
called procedure cannot execute transaction control statements.
Transaction control statements are only allowed if CALL
is executed in its own transaction.
Examples
CALL do_db_maintenance();
Compatibility
CALL conforms to the SQL standard.
See Also