ASSIGNMENT STATEMENT
Description
The assignment statement sets the value of a data item to a valid value. (Oracle PL/SQL Language Reference ASSIGNMENT Statement)
Some parts in the output code are omitted for clarity reasons.
LET
keyword is not needed for assignment statements when the variable has been declared before. Check Snowflake Assignment documentation for more information.
Sample Source Patterns
1. Scalar Variables
Oracle
Snowflake Scripting
Transformation for some data types needs to be updated, it may cause different results. For example, NUMBER to NUMBER rounds the value and the decimal point is lost. There is already a work item for this issue.
2. Out Parameter Assignment
To get more information about how the output parameters are being converted, please go to the following article Output Parameters.
3. Not Supported Assignments
Oracle
Snowflake Scripting
Known Issues
1. Several Unsupported Assignment Statements
Currently, transformation for cursor, collection, record, and user-defined type variables are not supported by Snow Scripting. Therefore assignment statements using these variables are commented and marked as not supported. Changing these variables to Snowflake semi-structured data types could help as a workaround in some scenarios.
Related EWIs
SSC-EWI-0036: Data type converted to another data type.
SSC-EWI-0058: Functionality is not currently supported by Snowflake Scripting.
SSC-EWI-0062: Custom type usage changed to variant.
SSC-EWI-OR0108: The Following Assignment Statement is Not Supported by Snowflake Scripting.
SSC-FDM-0006: Number type column may not behave similarly in Snowflake.
SSC-FDM-0007: Element with missing dependencies.
Last updated