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>)
Список pgsql-sql
Chris Ruprecht <chris@ruprecht.org> 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"
Дата:
Сообщение: Re: Variable number or arguments to a function possible?
Следующее
От: "Leif B. Kristensen"
Дата:
Сообщение: Multiple return values and assignment