How to pass a Type as an input variable to a inner function which is called in a function

。_饼干妹妹 提交于 2021-01-29 14:16:35

问题


Tried the following to pass the TYPE variable 'clientBdrIds 'as input parameter to an function'SP_GetDat' using unnest .Not working. Please help me by suggesting a way to pass the TYPE variable as input to a function which is called by the function 'Sp_GetFimBdrRiskData'.

CREATE OR REPLACE FUNCTION Sp_GetFimBdrRiskData(clientBdrIds CL_Numeric[])
returns void
 AS $$
BEGIN
create temporary table  tt_RISKVALUES as 
SELECT * FROM SP_GetDat(**select  * from unnest (clientBdrIds)**);//type variable as input not working
END; $$;

CREATE TYPE CL_Numeric AS
(
    Id numeric(38,0)
);

Please Help !!

来源:https://stackoverflow.com/questions/64668798/how-to-pass-a-type-as-an-input-variable-to-a-inner-function-which-is-called-in-a

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!