[postgresql]ROWS is not applicable when function does not return a set问题解决

需要把程序结尾的ROWS 1000去掉,提示如果函数不是返回一个数据集的情况下ROWS是不适用的:     

CREATE OR REPLACE FUNCTION public.function(
    eigyousyo_id1 integer)
RETURNS TABLE(eigyousyo_id integer) 
    LANGUAGE 'plpgsql'
    COST 100
    VOLATILE 
    ROWS 1000
原文地址:https://www.cnblogs.com/vickylinj/p/9707303.html