I need to assign values to 2 variable as below in Postgres function.
a := select col1 from tbl where ...
b := select col2 from tbl where ...
How can I assign 2 values to 2 variables in one line command?
Like
a,b := select col1,col2 from tbl where ...