Re: How can I select all of the tables with field name 'area'? - Mailing list pgsql-sql

From G. Anthony Reina
Subject Re: How can I select all of the tables with field name 'area'?
Date
Msg-id 39BD7A13.82079EF3@nsi.edu
Whole thread Raw
In response to Re: How can I select all of the tables with field name 'area'?  ("Darrin Ladd" <dladd@newfoundcomm.net>)
List pgsql-sql
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'.
>
>



pgsql-sql by date:

Previous
From: Hector Banda
Date:
Subject: This is A test Please Delete
Next
From: Max Pyziur
Date:
Subject: Re: Re: [BUGS] "ORDER BY" issue - is this a bug?