Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-sql by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group