DECLARE REFCURSOR
Last updated
Last updated
A
refcursor
data type simply holds a reference to a cursor. You can create a cursor variable by declaring it as a variable of typerefcursor
()
Refcursor declarations are fully supported by .
Since Snowflake does not support the REFCURSOR
data type, its functionality is replicated by converting the REFCURSOR
variable into a RESULTSET
type. The query used to open the REFCURSOR
is assigned to the RESULTSET
variable, after which a new cursor is created and linked to the RESULTSET
variable. Additionally, all references to the original REFCURSOR
within the cursor logic are updated to use the new cursor, thereby replicating the original functionality.
There are no known issues.
There are no related EWIs.