问题
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