I want to declare and assign variables on a Postgres 12.10 instance.
According to the Postgres documentation I should be able to declare and assign variables as follows
DECLARE
x integer := 1;
y integer := x + 1;
but I get the error
ERROR: syntax error at or near "integer"
LINE 2: x integer := 1;
^
SQL state: 42601
Character: 13
Can anyone see what I'm doing wrong?
