Complete the code to declare a variable named counter of type integer.
DECLARE counter [1];The INTEGER type is used to declare a variable that holds whole numbers.
Complete the code to assign the value 10 to the variable counter.
counter [1] 10;
In PostgreSQL procedural language, := is used to assign values to variables.
Fix the error in the variable declaration to declare username as a text variable.
DECLARE username [1];The TEXT type is used for variable-length strings in PostgreSQL.
Fill both blanks to declare a variable total as integer and assign it the value 0.
DECLARE total [1]; BEGIN total [2] 0; END;
Use INTEGER to declare the variable type and := to assign the value.
Fill all three blanks to declare a variable flag as boolean, assign it true, and then reassign it false.
DECLARE flag [1]; BEGIN flag [2] TRUE; flag [3] FALSE; END;
Declare flag as BOOLEAN. Use := to assign values in PL/pgSQL.
