Обсуждение: Stored procedures with variable number of args ?

Поиск
Список
Период
Сортировка

Stored procedures with variable number of args ?

От
"Bruno BAGUETTE"
Дата:
Hello,

Is it possible to make PL/PGSQL stored procedures with a variable number
of args ?

If yes, is it possible to have a sample ?

Thanks you in advance :-)

---------------------------------------
Bruno BAGUETTE - pgsql-ml@baguette.net


Re: Stored procedures with variable number of args ?

От
Peter Eisentraut
Дата:
Bruno BAGUETTE writes:

> Is it possible to make PL/PGSQL stored procedures with a variable number
> of args ?

Not directly, but you can overload one function name and make versions
that accept 1 .. max arguments.

--
Peter Eisentraut   peter_e@gmx.net