Snowflake Scripting
1 program
Added 2026-02-26T10:00:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled
Evidence
Report issue
View issues
Aliases: Snowflake SQL Scripting, SnowScript
Provenance: commit 7c253949a8 · authored 2026-02-26T17:11:57+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Fibonacci
Provenance: commit 7c253949a8 · authored 2026-02-26T17:11:57+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
-- Snowflake Scripting: Fibonacci sequence
-- Returns the nth Fibonacci number using iteration
CREATE OR REPLACE PROCEDURE fibonacci(n INTEGER)
RETURNS INTEGER
LANGUAGE SQL
AS
DECLARE
a INTEGER DEFAULT 0;
b INTEGER DEFAULT 1;
temp INTEGER;
i INTEGER DEFAULT 2;
BEGIN
IF (n <= 0) THEN
RETURN 0;
ELSEIF (n = 1) THEN
RETURN 1;
END IF;
WHILE (i <= n) DO
temp := a + b;
a := b;
b := temp;
i := i + 1;
END WHILE;
RETURN b;
END;