Re: Is there a PostgresQL equivalent to the DESCRIBE keyword???

From: Philip Hallstrom <philip(at)adhesivemedia(dot)com>
To: "Peter E(dot) Chen" <pchen3(at)jhmi(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Is there a PostgresQL equivalent to the DESCRIBE keyword???
Date: 2001-12-14 23:46:38
Message-ID: 20011214154612.J778-100000@teak.adhesivemedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

while in psql type:

\d tablename

(don't add a semicolon)

On Fri, 14 Dec 2001, Peter E. Chen wrote:

> Hey All,
>
> I'm trying to display the schema to various tables. In most other
> databases, you can use the DESCRIBE keyword or the SHOW keyword (I believe
> this is a SQL99 keyword). Is there an equivalent in PostgresQL?
>
> Also, does PostgresQL have an equivalent to the following:
>
> SHOW CREATE TABLE table_name
>
> Thanks for any help.
>
> Peter
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Doug McNaught 2001-12-15 00:09:20 Re: Vacuum
Previous Message Brian Avis 2001-12-14 23:37:05 Vacuum