Re: Execute command in PL/pgSQL function not executing

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Execute command in PL/pgSQL function not executing
Дата
Msg-id CAKFQuwYHpg5u5XwH4SNqG0HOq2LrgtRMxxtx=f0n5kmcY0EjwQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Execute command in PL/pgSQL function not executing  (Abdul Mohammed <imonikemohammed@gmail.com>)
Ответы Re: Execute command in PL/pgSQL function not executing
Список pgsql-general
On Fri, Nov 19, 2021 at 3:37 PM Abdul Mohammed <imonikemohammed@gmail.com> wrote:
 I read somewhere that you could have a table as a return type. I, therefore tried using the pivot table alias as the return type but got an error along lines of the alias not being recognized.

A table in that context is something you create using the "Create table" command.  And, per my other comments, you have to have done this before even creating the function in question since the function has to point to the table during the "create function" command's execution.

David J.

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

Предыдущее
От: Abdul Mohammed
Дата:
Сообщение: Re: Execute command in PL/pgSQL function not executing
Следующее
От: "Huang Wang"
Дата:
Сообщение: Error when rewriting a query into multiple queries