From: | "Brett W(dot) McCoy" <bmccoy(at)chapelperilous(dot)net> |
---|---|
To: | Niral Trivedi <niral(dot)trivedi(at)insage(dot)com> |
Cc: | <pgsql-general(at)postgresql(dot)org>, "'pgsql-admin(at)postgresql(dot)org'" <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: [GENERAL] simple questions |
Date: | 2000-12-15 21:56:26 |
Message-ID: | Pine.LNX.4.30.0012151654080.17327-100000@chapelperilous.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-general |
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.
From | Date | Subject | |
---|---|---|---|
Next Message | Jie Liang | 2000-12-15 21:57:33 | Re: simple questions |
Previous Message | Jie Liang | 2000-12-15 21:55:49 | Re: simple questions |
From | Date | Subject | |
---|---|---|---|
Next Message | Jie Liang | 2000-12-15 21:57:33 | Re: simple questions |
Previous Message | Jie Liang | 2000-12-15 21:55:49 | Re: simple questions |