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: (view raw, whole thread or download thread mbox)
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.


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-2017 The PostgreSQL Global Development Group