Re: Newbie: help with FUNCTION

Поиск
Список
Период
Сортировка
От elein@varlena.com (elein)
Тема Re: Newbie: help with FUNCTION
Дата
Msg-id 20050226020625.GG10213@varlena.com
обсуждение исходный текст
Ответ на Newbie: help with FUNCTION  (Charl Gerber <charlgerber@yahoo.com>)
Ответы Re: Newbie: help with FUNCTION  (Rick Apichairuk <rapichai@gmail.com>)
Список pgsql-general
Alternatives to returning a set of rows is to return
a set of integers, one per row selected.  Same example
as Huxton's without the row type.

Also you could return an array of integers.

--elein

On Thu, Feb 24, 2005 at 09:00:46PM +0000, Charl Gerber wrote:
> I'm trying to create  a function that takes 1
> paramater (eg an integer) as input, then does 5
> database updates or deletes in 5 different SQL
> statements and returns 5 integers (in one resultset)
> indicating how many rows were affected by the various
> updates/deletes.
>
> How do I do this?
>
> How can I specify the names of the 5 output colums?
>
> Thanks
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Is this correct behavior for ON DELETE rule?
Следующее
От: elein@varlena.com (elein)
Дата:
Сообщение: Re: basic trigger using OLD not working?