PARAMETRIZED CURSOR
Parametrized Cursor is not supported by Snowflake Scripting
Description
Example Code
Input Code Oracle:
CREATE OR REPLACE PROCEDURE parametrized_cursor_sample AS
CURSOR cursor1(param1 number) IS SELECT region_name FROM hr.regions where region_id = param1 ORDER BY region_name;
var1 integer;
BEGIN
OPEN cursor1(123);
FETCH cursor1 INTO var1;
CLOSE cursor1;
FOR r1 IN cursor1(456) LOOP
NULL;
END LOOP;
END;Output Code:
Recommendations
Related EWIs
Last updated
