AW: AW: AW: SQL3 UNDER

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas SB
Тема AW: AW: AW: SQL3 UNDER
Дата
Msg-id 219F68D65015D011A8E000006F8590C604AF7DA8@sdexcsrv1.f000.d0188.sd.spardat.at
обсуждение исходный текст
Список pgsql-hackers
> > I am not talking about select * I am talking about
> > "select somefunc(supertable) from supertable"
> > 
> > create table supertable  (a int);
> > create table taba (b int) under supertable;
> > 
> > create function somefunc (tup supertable) returning int
> > as 'select 1' ...
> > 
> > create function somefunc (tup taba) returning int
> > as 'select 0.5*b' ....
> 
> So how does this work in Informix/Illustra ?
> 
> i.e. is the binding done at row evaluation time or 
> "when they do 'select * ...' and don't know about coumn b"

when you do "select * from supertable" you only get column a,
but rows from both tables.
when you do select somefunc(supertable) ... the function 
corresponding to the rowtype is called thus the taba rows 
do get 0.5*b as result.

Andreas


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

Предыдущее
От: Zeugswetter Andreas SB
Дата:
Сообщение: AW: AW: Berkeley DB...
Следующее
От: "Mikheev, Vadim"
Дата:
Сообщение: RE: Berkeley DB...