Re: Table description - Mailing list pgsql-general

From Richard Broersma Jr
Subject Re: Table description
Date
Msg-id 748846.47354.qm@web31805.mail.mud.yahoo.com
Whole thread Raw
In response to Table description  ("Livia Santos" <liviasilvasantos@gmail.com>)
List pgsql-general
--- Livia Santos <liviasilvasantos@gmail.com> wrote:
> Is there any command that describe a table, such as desc table_name as in
> Oracle?

from the psql user interface, you can use the following command:

\dt
to list all table in the currently set schema

\d [table_name]
the see the table attributes

\d+ [table_name]
to see additional table attributes

Regards,
Richard Broersma Jr.

pgsql-general by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: ERROR: relation "xxx" already exists but where????
Next
From: "Scott Marlowe"
Date:
Subject: Re: Table description