Collection Bulk Operations
This is a translation reference to convert the Oracle Collection Bulk Operations to Snowflake
Last updated
This is a translation reference to convert the Oracle Collection Bulk Operations to Snowflake
Last updated
This section is a work in progress, information may change in the future
The
BULK
COLLECT
clause, a feature of bulk SQL, returns results from SQL to PL/SQL in batches rather than one at a time.The
BULK
COLLECT
clause can appear in:
SELECT
INTO
statement
FETCH
statement
RETURNING
INTO
clause of:
DELETE
statement
INSERT
statement
UPDATE
statement
EXECUTE
IMMEDIATE
statementWith the
BULK
COLLECT
clause, each of the preceding statements retrieves an entire result set and stores it in one or more collection variables in a single operation (which is more efficient than using a loop statement to retrieve one result row at a time).
()
This section has some workarounds for SELECTs and FETCH Cursor with Bulk Clauses.
EXECUTE IMMEDIATE with Bulk Collect clause has no workarounds offered.
In this case, the translation specification uses RESULTSETs. Review the documentation for WITH, SELECT, and BULK COLLECT INTO statements here:
The workaround for the Fetch cursor has heavy performance requirements due to the Temporary table. It is advised for them to be manually migrated to SELECT statements
They are not supported by SnowConvert but may be manually changed to SELECT statements.
: Functionality is not currently supported by Snowflake Scripting.
: Custom type usage changed to variant.
: Pending Functional Equivalence Review
: Types resolution issues, the arithmetic operation may not behave correctly between string and date.
: The Following Assignment Statement is Not Supported by Snowflake Scripting.
: DBMS_OUTPUT.PUTLINE check UDF implementation.
: This statement has usages of cursor fetch bulk operations.
: The statement below has usages of dynamic SQL