Error: query has no destination for result data while using a cursor
问题 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 will be passing as an argument to each of my functions being called and based on the argument will get executed. I am giving my code here: CREATE OR REPLACE FUNCTION ccdb.fn_automation() RETURNS void AS $BODY$ DECLARE sec_col refcursor; cnt integer; sec_code ccdb.update_qtable%ROWTYPE; new_cnt numeric; BEGIN SELECT COUNT(*