Re: Is there anything like DESCRIBE?

From: Ron Peterson <ron(dot)peterson(at)yellowbank(dot)com>
To: "Mike D'Agosta" <mdagosta(at)earthtribe(dot)net>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Is there anything like DESCRIBE?
Date: 2001-01-26 02:34:40
Message-ID: 3A70E240.64FC7006@yellowbank.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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-

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2001-01-26 03:35:46 Re: Rule not invoked in 7.1
Previous Message Ron Sofrin 2001-01-25 23:47:47 SQL function and composite types