Work around to simulate the use of Records
This page is deprecated but was left for compatibility purposes. If you want to see the updated section, please refer to Collections And Records
Description
This section describes how to simulate the behavior of Oracle records in SELECT and INSERT Statements, using RESULTSET and CURSORS of Snowflake Scripting.
Snowflake Scripting RESULTSET and CURSOR
You might also be interested in CURSOR.
Recommendations
For the following examples, this code was executed to better understanding of the examples:
IN -> Oracle_01.sql
Using RESULTSET and Cursors instead of Records
Oracle
IN -> Oracle_02.sql
Snowflake
OUT -> Oracle_02.sql
Known Issues
1. Limitation in the use of RESULTSET
RESULTSET is very limited in its use. If table(result_scan(last_query_id()))
statement, should be used just after the RESULTSET's query is executed. For further information check this link.
Related EWIs
SSC-EWI-0036: Data type converted to another data type.
SSC-EWI-0056: Create Type Not Supported.
Last updated