Re: how to show table structure?

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Bing Du <bdu(at)iastate(dot)edu>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: how to show table structure?
Date: 2004-01-09 23:10:23
Message-ID: Pine.LNX.4.33.0401091608580.6872-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Fri, 9 Jan 2004, Bing Du wrote:

> Greetings,
>
> How can I see the layout of a table in PostgreSQL 7.4? I've checked
> several books and on-line documents, but was not able to figure out how
> PostgreSQL does 'describe <table>' like it's done in other databases.

If in psql, use the \d commands (\? will show you all of them.

However, if you've not got psql to do it, you can look through the
information_schema for anything like that, like so:

select * from information_schema.tables;

and so on.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Larry Rosenman 2004-01-09 23:12:09 Re: how to show table structure?
Previous Message Bing Du 2004-01-09 23:05:37 how to show table structure?