From: G. Anthony Reina <reina@nsi.edu>
To: Darrin Ladd <dladd@newfoundcomm.net>
Cc: Stuart Foster <stuartafoster@home.com>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: How can I select all of the tables with field name 'area'?
Date: Mon, 11 Sep 2000 17:34:27 -0700
Message-ID: <39BD7A13.82079EF3@nsi.edu> (raw)
References: <015e01c01c56$f24be840$0e040a0a@dirge.NEWFOUND>
Thanks Darrin and Stuart.
-Tony
Darrin Ladd wrote:
> Here's what you are looking for:
>
> SELECT pg_class.relname
> FROM pg_class, pg_attribute
> WHERE pg_attribute.attname = 'area'
> AND pg_attribute.attrelid = pg_class.oid;
>
> This should give you all of the classes (tables) which have the attribute
> (field) 'area'.
>
>
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: reina@nsi.edu, dladd@newfoundcomm.net, stuartafoster@home.com
Subject: Re: How can I select all of the tables with field name 'area'?
In-Reply-To: <39BD7A13.82079EF3@nsi.edu>
References: <015e01c01c56$f24be840$0e040a0a@dirge.NEWFOUND> <39BD7A13.82079EF3@nsi.edu>
* 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