Hello.
I`ve got a big problem.
I want to create an advance SELECT function that returns set of records. This function should do several different SELECTs depending on the INPUT parameter.
EX:
CREATE OR REPLACE FUNCTION getmessage(bigint)
RETURNS SETOF record AS
$BODY$
CASE WHEN $1 = -1 THEN...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.