| От | David Johnston |
|---|---|
| Тема | Re: defaults in a function |
| Дата | |
| Msg-id | 51DDFD64-F1F6-478D-AAE2-4456AACD0601@yahoo.com обсуждение исходный текст |
| Ответ на | defaults in a function (John Fabiani <johnf@jfcomputer.com>) |
| Список | pgsql-sql |
On Jun 6, 2012, at 11:08, John Fabiani <johnf@jfcomputer.com> wrote: > Hi, > In python when I create a method/function is set a default value for a passed value if one is not provided. > > def foo(self, event = None): > > In the above function if the second value is not passed a value of None is used as the default. > > Is this possible with plpgsql??? > > Johnf > http://www.postgresql.org/docs/9.0/interactive/sql-createfunction.html ... param_n type DEFAULT value OR ... param_n type = value It is SQL DDL syntax and not specific to the language the function is written in. David J.
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера