From: Richard Huxton <dev@archonet.com>
To: Guillaume Houssay <ghoussay@noos.fr>
To: pgsql-general@postgresql.org
Subject: Re: SQL question
Date: Tue, 10 Jun 2003 08:04:10 +0100
Message-ID: <200306100804.10644.dev@archonet.com> (raw)
In-Reply-To: <016501c32e8b$4e5522c0$62aa84c3@camille>
References: <016501c32e8b$4e5522c0$62aa84c3@camille>
On Monday 09 Jun 2003 2:30 pm, 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.
>
> Thank you for you help
In psql there are a number of backslash commands - you might find the
following useful:
\d
\dt
\dv
\d mytable1
\d my*
If you start psql with the -E flag you'll see the SQL that's used to run
these. See "man psql" or the manuals for more info.
--
Richard Huxton
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: dev@archonet.com, ghoussay@noos.fr
Subject: Re: SQL question
In-Reply-To: <200306100804.10644.dev@archonet.com>
References: <016501c32e8b$4e5522c0$62aa84c3@camille> <200306100804.10644.dev@archonet.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