Skip to content
Advertisement

Postgresql, one function calls another function and get 2 out values to caller

Postgresql 12. Want to call function testA() from another function testB(), and assign two “out” values to the 2 local variables. Don’t know how to do the assignment, please help.

Advertisement

Answer

Like this:

The SELECT INTO will assign the output of testa to the variables you declare in testb. See here for more information.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement