plpgsql default arguments

Поиск
Список
Период
Сортировка
От Greg Lindstrom
Тема plpgsql default arguments
Дата
Msg-id 425E8BAE.3080301@novasyshealth.com
обсуждение исходный текст
Ответы Re: plpgsql default arguments  (Pavel Stehule <stehule@kix.fsv.cvut.cz>)
Список pgsql-general
Hello-

I am running postgres on a Linux system and have been using plpgsql to
write functions.  Is there a way to specify default arguments?  For
example, I would like to offer the user to specify a date to use in my
function but if no date is specified I would like to use the current
date.  Easy to do in C, C++, Perl, and Python (and, I assume Java), but
I can't find anything in the documentation or on Google.  Is it possible
in plpgsql?

Thanks,
--greg

--
Greg Lindstrom               501 975.4859 (office)
Senior Programmer            501 219-4455 (fax)
NovaSys Health               greg.lindstrom@novasyshealth.com
Little Rock, Arkansas

"We are the music makers, and we are the dreamers of dreams."  W.W.



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

Предыдущее
От: Devrim GUNDUZ
Дата:
Сообщение: (S)RPMs for PostgreSQL 8.0.2 are ready.
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: plpgsql default arguments