Return Table in StoredProceure/Function

Поиск
Список
Период
Сортировка
От İlyas Derse
Тема Return Table in StoredProceure/Function
Дата
Msg-id CALcdmyQc2szTJBWQvzBmizpKji+L_cGk9sw6dSpTZLeasR817A@mail.gmail.com
обсуждение исходный текст
Ответы Re: Return Table in StoredProceure/Function
Re: Return Table in StoredProceure/Function
Список pgsql-general


How can I return table in Stored Procedure ? I can do it in function but I have inout parameters.So I can not create in function. What can I do this case ?

I guess,It should be like for function :

CREATE or REPLACE FUNCTION public."test" (INOUT "x" integer, INOUT "y" text)

RETURNS TABLE  (
"id" integer,
"filesize" character varying(36)
)
AS $$BEGIN
RETURN QUERY
SELECT * FROM    public."tbl_employees" ;

END;
$$ LANGUAGE plpgsql;

Thanks.

В списке pgsql-general по дате отправления:

Предыдущее
От: "James(王旭)"
Дата:
Сообщение: Re: How should I specify work_mem/max_worker_processes if I want to do big queries now and then?
Следующее
От: "James(王旭)"
Дата:
Сообщение: Re: How should I specify work_mem/max_worker_processes if I want to do big queries now and then?