PostgreSQL - PL/pgSQL Fundamentals
Identify the error in this PL/pgSQL snippet:
DO $$
DECLARE
n INT := 3;
BEGIN
IF n = 1 THEN
RAISE NOTICE 'One';
ELSIF n = 2 THEN
RAISE NOTICE 'Two';
ELSE
RAISE NOTICE 'Other'
END IF;
END $$;Identify the error in this PL/pgSQL snippet:
DO $$
DECLARE
n INT := 3;
BEGIN
IF n = 1 THEN
RAISE NOTICE 'One';
ELSIF n = 2 THEN
RAISE NOTICE 'Two';
ELSE
RAISE NOTICE 'Other'
END IF;
END $$;15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions