SQL - Stored Procedures and Functions
Consider this SQL procedure snippet:
What will be the value of
DECLARE v_age INT DEFAULT 20; IF v_age >= 18 THEN SET @result = 'Adult'; ELSE SET @result = 'Minor'; END IF;
What will be the value of
@result after execution?