Re: how to show table structure? - Mailing list pgsql-sql

From scott.marlowe
Subject Re: how to show table structure?
Date
Msg-id Pine.LNX.4.33.0401091608580.6872-100000@css120.ihs.com
Whole thread Raw
In response to how to show table structure?  ("Bing Du" <bdu@iastate.edu>)
List 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.



pgsql-sql by date:

Previous
From: Larry Rosenman
Date:
Subject: Re: how to show table structure?
Next
From: "Kumar"
Date:
Subject: Re: how to show table structure?