Re: FROM Clause subquery

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: FROM Clause subquery
Дата
Msg-id 20020311091522.H45259-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на FROM Clause subquery  ("DongSoo Song" <namsanmo@kehc.org>)
Список pgsql-general
> Now I want to get sequence fields following:
>
> test=# select * from (select relname from pg_class where relkind='S') as foo;
>
> My Result:
>
>          relname
> -------------------------
>  test_seq
> (1 rows)
>
> Why? FROM Clause subquery not working? or my mistakes?

That's not what the above does.  The subselect in from isn't a substitute
for table names, it's a substitute for a table.  Think of it almost as an
inplace view definition.



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Nice Oracle tuning article
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: ERROR: DefineIndex: index function must be marked