Eu preciso atribuir valores a 2 variáveis como abaixo na função Postgres.
a := select col1 from tbl where ...
b := select col2 from tbl where ...
Como posso atribuir 2 valores a 2 variáveis em um comando de linha?
Curti
a,b := select col1,col2 from tbl where ...
Como dito em "40.5.3. Executando uma consulta com um resultado de linha única" (ênfase minha):
Então isso deve funcionar: