ASSIGNMENT STATEMENT

Important Notice: Migration of Documentation Website

Please be advised that our documentation website is currently undergoing a migration to a new platform. To ensure you have access to the most up-to-date information, we kindly request that you visit our new documentation website located at:

Official Snowflake Snowconvert Documentation

For any immediate assistance or if you encounter any issues, please contact our support team at [email protected].

Thank you for your understanding.

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.

assignment_statement_target := expression ;

assignment_statement_target = 
{ collection_variable [ ( index ) ]
| cursor_variable
| :host_cursor_variable
| object[.attribute]
| out_parameter
| placeholder
| record_variable[.field]
| scalar_variable
}

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

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.

  1. SSC-EWI-0036: Data type converted to another data type.

  2. SSC-EWI-0058: Functionality is not currently supported by Snowflake Scripting.

  3. SSC-EWI-0062: Custom type usage changed to variant.

  4. SSC-EWI-OR0108: The Following Assignment Statement is Not Supported by Snowflake Scripting.

  5. SSC-FDM-0006: Number type column may not behave similarly in Snowflake.

  6. SSC-FDM-0007: Element with missing dependencies.

Last updated