Error: query has no destination for result data while using a cursor

后端 未结 2 1829
南笙
南笙 2020-12-11 23:21

I have a function which I have written to automate the execution of a group of functions for my project. I am taking a refcursor where I am storing my required data which I

2条回答
  •  一向
    一向 (楼主)
    2020-12-12 00:06

    As per instructions in the manual:

    Sometimes it is useful to evaluate an expression or SELECT query but discard the result, for example when calling a function that has side-effects but no useful result value. To do this in PL/pgSQL, use the PERFORM statement:

    PERFORM query;
    

提交回复
热议问题