Re: Newbie question: How to check how many tables avaliable at that database?

Поиск
Список
Период
Сортировка
От Nils Zonneveld
Тема Re: Newbie question: How to check how many tables avaliable at that database?
Дата
Msg-id 3B27A218.F93DB88A@mbit.nl
обсуждение исходный текст
Ответы Re: Re: Newbie question: How to check how many tables avaliable at that database?  (will trillich <will@serensoft.com>)
Список pgsql-general

Carfield Yim wrote:
>
> I am a  new user of PostgreSQL dbms, how can I check how many tables
> avaliable at that database?

To get a list of tables through SQL:

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

To get the number of tables through SQL:

SELECT count(*) FROM pg_tables WHERE tablename NOT LIKE 'pg_%';


HTH,

Nils Zonneveld

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

Предыдущее
От: "Sergei Pohilko"
Дата:
Сообщение: Problem with multibyte encoding
Следующее
От: Dip
Дата:
Сообщение: Postgres Internals