Re: How to list which tables are available?

Поиск
Список
Период
Сортировка
От chet@crashed.net (Chet Luther)
Тема Re: How to list which tables are available?
Дата
Msg-id 3d88cfc9.0310141254.8c55c45@posting.google.com
обсуждение исходный текст
Ответ на How to list which tables are available?  ("B.W.H. van Beest" <bwvb@xs4all.nl>)
Список pgsql-general
To get a list of the non-default tables in your database, do this:

SELECT tablename FROM pg_tables WHERE tablename NOT LIKE 'pg_%';

If you really want all of the tables, including the ones PostgreSQL
creates by default, just do this:

SELECT tablename FROM pg_tables;

Hope this helps,
chet@crashed.net

"B.W.H. van Beest" <bwvb@xs4all.nl> wrote in message news:<3f8bc79c$0$58708$e4fe514c@news.xs4all.nl>...
> It seems so elementary, but how I get a list of which tables are
> available in a database. I can't find an SQL command for this, but there
> must be a way!
>
> Thanks.
>
> Bertwim

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

Предыдущее
От: Vatsal
Дата:
Сообщение: Re: Transaction Queries!!!
Следующее
От: chet@crashed.net (Chet Luther)
Дата:
Сообщение: Re: Create Function... ERROR: language "plpgsql" does not exist