AW: SQL99 functions

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB
Тема AW: SQL99 functions
Дата
Msg-id 219F68D65015D011A8E000006F8590C605BA599D@sdexcsrv1.f000.d0188.sd.spardat.at
обсуждение исходный текст
Ответы Re: AW: SQL99 functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> Thomas Lockhart <lockhart@alumni.caltech.edu> writes:
> >   create table t1 (x int);
> >   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.

Andreas 


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: AW: Proposal: More flexible backup/restore via pg_dump
Следующее
От: Thomas Lockhart
Дата:
Сообщение: Re: AW: SQL99 functions