Re: Variable number or arguments to a function possible?

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Variable number or arguments to a function possible?
Дата
Msg-id
25088.1240628978@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Variable number or arguments to a function possible? Chris Ruprecht <chris@ruprecht.org>
Re: Variable number or arguments to a function possible? Tom Lane <tgl@sss.pgh.pa.us>
Re: Variable number or arguments to a function possible? "Milen A. Radev" <milen@radev.net>
Chris Ruprecht  writes:
> Is it possible to create a function that can take a variable number of  
> arguments?

No, but you can make it take an array and then write something like
myfunc(array[x, y, ...])

8.4 will have some syntactic sugar that looks like variable numbers of
arguments, but it's reducing to the above underneath.
		regards, tom lane

В списке pgsql-sql по дате отправления
От: Milen A. Radev
Дата:
От: Leif B. Kristensen
Дата:
FAQ