SQL subquery to supply table name?

Поиск
Список
Период
Сортировка
От Scott Chapman
Тема SQL subquery to supply table name?
Дата
Msg-id 200209261604.14153.scott_list@mischko.com
обсуждение исходный текст
Ответы Re: SQL subquery to supply table name?  (Martijn van Oosterhout <kleptog@svana.org>)
Re: SQL subquery to supply table name?  (Scott Chapman <scott_list@mischko.com>)
Re: SQL subquery to supply table name?  (Scott Chapman <scott@mischko.com>)
Список pgsql-general
I have a situation where a table contains table names.  I need to know if I
can make a Postgresql query that will have a subquery which supplies the
table name I want to deal with.  Can this be done?

Something like this:
select column from (select table_name from table2 where key=value) where
key=value;

Scott

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Performance while loading data and indexing
Следующее
От: Doug McNaught
Дата:
Сообщение: Re: [HACKERS] Performance while loading data and indexing