1
我正在嘗試編寫一個Postgres函數。我這樣做的第一次,所以如果你發現了一些愚蠢的錯誤並不感到惱火:編寫函數時PostgreSQL sql函數語法錯誤
CREATE FUNCTION proc_test(userId int)
returns void
begin
UPDATE pl_payroll SET remarks =viw.remarks from pl_payroll
diff,viwPayDifference viw
where diff.userid = cast(userId as varchar);
end;
它是在給像
語法錯誤的錯誤或接近「開始」
這裏有什麼問題?