There is no such feature in PostgreSQL. You can do it only in pl/PgSQL (or other pl/*), but not in plain SQL. An exception is WITH () query which ...
postgresql-declare-variable-in-query
3925e8d270
postgresql declare variable query, how do i declare a variable in postgresql query, postgresql set variable to query result
Opmerkingen