CALL

statementsupportedUDFs, procedures, tasks, alerts, scripting

docs.snowflake.com ↗

Calls a stored procedure.

Syntax

supportedpartialnot supportednot scored

CALL <procedure_name> ( [ [ <arg_name> => ] <arg> , ... ] )
  [ INTO :<snowflake_scripting_variable> ]

Parameters

NameRequiredDescription
procedure_name ( [ [ arg_name => ] arg , ... ] )requiredSpecifies the identifier (procedure_name) for the procedure to call and any input arguments. You can either specify the input arguments by name (arg_name => arg) or by position (arg). Note You must either specify all arguments by name or by position. You can’t specify some of the arguments by name and other arguments by position. When you specify an argument by name, you can’t use double quotes around the argument name. If two procedures have the same name but different argument types, you can use the argument names to specify which procedure to execute, if the argument names are different. For more information, see Overloading procedures and functions.
INTO :snowflake_scripting_variableoptionalSets the specified Snowflake Scripting variable to the return value of the stored procedure.

See also

Referenced by