DECLARE
關鍵字來聲明變量。錯誤示例:
amount INTEGER := 100;
正確示例:
DECLARE amount INTEGER := 100;
錯誤示例:
DECLARE amount VARCHAR(50) := '100';
正確示例:
DECLARE amount INTEGER := 100;
錯誤示例:
DECLARE 1amount INTEGER := 100;
正確示例:
DECLARE amount INTEGER := 100;
錯誤示例:
DECLARE amount INTEGER;
SELECT amount;
正確示例:
DECLARE amount INTEGER := 100;
SELECT amount;
錯誤示例:
DECLARE amount INTEGER := 100
正確示例:
DECLARE amount INTEGER := 100;