From: Martijn van Oosterhout <kleptog@svana.org>
To: Guillaume Houssay <ghoussay@noos.fr>
Cc: pgsql-general@postgresql.org
Subject: Re: SQL question
Date: Tue, 10 Jun 2003 15:32:42 +1000
Message-ID: <20030610053242.GC18095@svana.org> (raw)
In-Reply-To: <016501c32e8b$4e5522c0$62aa84c3@camille>
References: <016501c32e8b$4e5522c0$62aa84c3@camille>
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@svana.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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: kleptog@svana.org, ghoussay@noos.fr
Subject: Re: SQL question
In-Reply-To: <20030610053242.GC18095@svana.org>
References: <016501c32e8b$4e5522c0$62aa84c3@camille> <20030610053242.GC18095@svana.org>
* 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