From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Guillaume Houssay <ghoussay(at)noos(dot)fr> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: SQL question |
Date: | 2003-06-10 05:32:42 |
Message-ID: | 20030610053242.GC18095@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Mon, Jun 09, 2003 at 03:30:33PM +0200, Guillaume Houssay wrote:
> I found a way to have the list of all the tables for my database.
>
> Now, I would like to get the name of the columns of any table.
> I could not find the SQL command to do that.
In psql type \? to get a list of all the commands. In particular, \d
<tablename> is what you're looking for.
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> "the West won the world not by the superiority of its ideas or values or
> religion but rather by its superiority in applying organized violence.
> Westerners often forget this fact, non-Westerners never do."
> - Samuel P. Huntington
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-06-10 05:34:30 | Re: Pg_dumpall from different versions |
Previous Message | Shridhar Daithankar | 2003-06-10 05:12:25 | Re: Estimate of when CVS will be available again? |