Re: PL/pgSQL Function Help

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PL/pgSQL Function Help
Дата
Msg-id 28963.1134765001@sss.pgh.pa.us
обсуждение исходный текст
Ответ на PL/pgSQL Function Help  ("Niblett, David A" <niblettda@gru.com>)
Ответы Re: PL/pgSQL Function Help  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-general
"Niblett, David A" <niblettda@gru.com> writes:
> Is there no way in Postgres that I can simply not return
> anything so I show zero rows?

Make the function return SETOF myrec not just myrec.  Then you
can return zero or one (or more) myrec's.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: 8.1 build on Solaris has LATIN9?
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: PL/pgSQL Function Help