Re: Query a list of tables

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Query a list of tables
Дата
Msg-id dcc563d10807230802l6e2035fchabfc8d2d8c317b65@mail.gmail.com
обсуждение исходный текст
Ответ на Query a list of tables  ("Campbell, Lance" <lance@illinois.edu>)
Ответы Re: Query a list of tables
Re: Query a list of tables
Список pgsql-admin
On Wed, Jul 23, 2008 at 8:56 AM, Campbell, Lance <lance@illinois.edu> wrote:
> What is the SQL to do the following:
>
>
>
> 1)      Return a list of all possible SCHEMA names within a database.
>
> 2)      For a given SCHEMA return the list of all table names.

You can either do it with the INFORMATION_SCHEMA, or the system
catalogs.  To see how to do it with the system catalogs, then start
psql with the -E switch and issue \dn and set search_path='schemaname'
and \d

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

Предыдущее
От: "Campbell, Lance"
Дата:
Сообщение: Query a list of tables
Следующее
От: "Gibson Chimhamhiwa"
Дата:
Сообщение: Re: Query a list of tables