From: Ron Peterson <ron.peterson@yellowbank.com>
To: Mike D'Agosta <mdagosta@earthtribe.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Is there anything like DESCRIBE?
Date: Thu, 25 Jan 2001 21:34:40 -0500
Message-ID: <3A70E240.64FC7006@yellowbank.com> (raw)
References: <94n93j$2j6j$1@news.tht.net>
Mike D'Agosta wrote:
>
> Hi,
>
> I have a number of empty tables and I want to get the column names and
> data types with an SQL statement. I want to do this procedurally, not
> interactively (so I can't use \d <tablename> in psql). Postgres doesn't
> support DESCRIBE... is there any other way to do this?
src/tutorial/syscat.source has some examples you might like to study.
-Ron-
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-sql@postgresql.org
Cc: ron.peterson@yellowbank.com, mdagosta@earthtribe.net
Subject: Re: Is there anything like DESCRIBE?
In-Reply-To: <3A70E240.64FC7006@yellowbank.com>
References: <94n93j$2j6j$1@news.tht.net> <3A70E240.64FC7006@yellowbank.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