I need to implement for loop in JavaScript (snowflake procedure). The code is from Teradata and I need to convert this to snowflake.
FOR i AS COL_LIST CURSOR