| От | Thomas Lockhart |
|---|---|
| Тема | Re: AW: SQL99 functions |
| Дата | |
| Msg-id | 3958C333.1195DC21@alumni.caltech.edu обсуждение исходный текст |
| Ответ на | AW: SQL99 functions (Zeugswetter Andreas SB <ZeugswetterA@wien.spardat.at>) |
| Список | pgsql-hackers |
> > > create function foo (out int) returns int as ...;
> > > select foo(x) from t1;
> > > will give two columns for the result.
> > You've *got* to be kidding.
> > To name just one problem with that, where do I put an AS to relabel
> > the extra column?
> It gets the name of the variable ( here "out"), no way to rename it,
> but no problem since you can name the variable however you like.
Actually, there is a third (optional) field which is the variable name:
create function foo (out pname int) returns int as ...;
Not sure what it should default to if the name is not specified.
- Thomas
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера