plpgsql: calling a function with 2 OUT parameters

后端 未结 2 1394
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-05 06:42

I\'m trying to fetch to values from a plpgsql function with 2 OUT paramenters but I have some problem.

These are the functions:

CREATE OR REPLACE FUNCTION          


        
2条回答
  •  遇见更好的自我
    2021-02-05 07:19

    As you have 2 OUT params, your function will return a record.

    In order to get all values you should use function as the source of your data and put it into the FROM clause like this:

    SELECT * FROM get_test() INTO xx, yy;
    

提交回复
热议问题