ARGUMENTS MODE
Description
Amazon Redshift stored procedures support parameters that can be passed during procedure invocation. These parameters allow you to provide input values, retrieve output values, or use them for input and output operations. Below is a detailed explanation of the types of parameters, their modes, and examples of their usage. Snowflake only supports input values.
IN (Input Parameters)
Purpose: Used to pass values into the procedure.
Default Mode: If no mode is specified, parameters are considered IN.
Behavior: Values passed to the procedure cannot be modified inside the procedure.
OUT (Output Parameters)
Purpose: Used to return values from the procedure.
Behavior: Parameters can be modified inside the procedure and are returned to the caller. You cannot send an initial value.
INOUT (Input/Output Parameters)
Purpose: Used to pass values into the procedure and modify them to return updated values.
Behavior: Combines the behavior of IN and OUT. You must send an initial value regardless of the output.
Grammar Syntax
Sample Source Patterns
Input Code:
Output Code:
Unsupported Scenarios
Input Code:
Output Code:
Known Issues
There are no known issues.
Related EWIs
SCC-EWI-0028 : Type not supported by Snowflake.
Last updated