Re: [GENERAL] simple questions - Mailing list pgsql-admin

From Brett W. McCoy
Subject Re: [GENERAL] simple questions
Date
Msg-id Pine.LNX.4.30.0012151654080.17327-100000@chapelperilous.net
Whole thread Raw
In response to simple questions  (Niral Trivedi <niral.trivedi@insage.com>)
List 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 by date:

Previous
From: "Oliver Elphick"
Date:
Subject: Re: simple questions
Next
From:
Date:
Subject: raw data in a 6.5.3 table