Re: [GENERAL] simple questions

Поиск
Список
Период
Сортировка
От Brett W. McCoy
Тема Re: [GENERAL] simple questions
Дата
Msg-id Pine.LNX.4.30.0012151654080.17327-100000@chapelperilous.net
обсуждение исходный текст
Ответ на simple questions  (Niral Trivedi <niral.trivedi@insage.com>)
Список pgsql-admin
On Fri, 15 Dec 2000, Niral Trivedi wrote:

> I have very simple two questions..
>
> How can we 'describe a table' and 'view all available tables' in postgres
> DB??
>
> I am looking for something similar to 'desc <TABLE>' and 'show tables' in
> MySQL or
> 'desc <TABLE>' and 'select * from tab' in Oracle..

If you are using the psql app, \d will show you all relations (tables,
sequences, etc).  \dt will show all tables, \dt <table> will show the
details of a particualr table.  See the online help \? for more info.

-- Brett
                                     http://www.chapelperilous.net/~bmccoy/
---------------------------------------------------------------------------
If we all work together, we can totally disrupt the system.


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

Предыдущее
От: "Oliver Elphick"
Дата:
Сообщение: Re: simple questions
Следующее
От:
Дата:
Сообщение: raw data in a 6.5.3 table