How to declare a variable in a PostgreSQL query How to declare a variable in a PostgreSQL query postgresql postgresql