pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: scott.marlowe <scott.marlowe@ihs.com>
To: Bing Du <bdu@iastate.edu>
Cc: pgsql-sql@postgresql.org
Subject: Re: how to show table structure?
Date: Fri, 9 Jan 2004 16:10:23 -0700 (MST)
Message-ID: <Pine.LNX.4.33.0401091608580.6872-100000@css120.ihs.com> (raw)
In-Reply-To: <2094.129.186.197.127.1073689537.squirrel@mail.eng.iastate.edu>

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.




view thread (4+ messages)  latest in thread

Message-ID: <Pine.LNX.4.33.0401091608580.6872-100000@css120.ihs.com>
Permalink:  ../Pine.LNX.4.33.0401091608580.6872-100000@css120.ihs.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.33.0401091608580.6872-100000@css120.ihs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: scott.marlowe@ihs.com, bdu@iastate.edu
  Subject: Re: how to show table structure?
  In-Reply-To: <Pine.LNX.4.33.0401091608580.6872-100000@css120.ihs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox