Re: Describe structure.

Poul L. Christiansen <plc@faroenet.fo>

From: "Poul L. Christiansen" <plc@faroenet.fo>
To: anuj <Anuj@in-control.de>
Cc: pgsql-general@hub.org
Date: 2000-07-25T08:42:41Z
Lists: pgsql-general
pg=>\d tblpg will describe the structure.

pg=>\? will give a list of commands, including how to use \d

anuj wrote:

> Hi,
> My table name is tblpg.
> I want to see the table structure.
> Like oracle have Describe <table name>.
> What PG have ? or any command.
> Thank in advance.
> Anuj
>
> pg=> \d
> Database    = pg
>  +------------------+----------------------------------+----------+
>  |  Owner           |             Relation             |   Type   |
>  +------------------+----------------------------------+----------+
>  | postgres         | tblpg                            | table    |
>  +------------------+----------------------------------+----------+
>
> pg=> describe tblpg;
> ERROR:  parser: parse error at or near "describe"