Re: find all tables with a specific column name? - Mailing list pgsql-sql

From Jeff Frost
Subject Re: find all tables with a specific column name?
Date
Msg-id Pine.LNX.4.64.0604211129340.1527@glacier.frostconsultingllc.com
Whole thread Raw
In response to Re: find all tables with a specific column name?  (Bruno Wolff III <bruno@wolff.to>)
Responses Re: find all tables with a specific column name?  ("Ben K." <bkim@coe.tamu.edu>)
List pgsql-sql
On Fri, 21 Apr 2006, Bruno Wolff III wrote:

> On Fri, Apr 21, 2006 at 09:29:33 -0700,
>  Jeff Frost <jeff@frostconsultingllc.com> wrote:
>> Is there a reasonable way to extract a list of all tables which contain a
>> specific column name from the system views on 8.1?
>>
>> For instance, I might want to enumerate all tables with a column named
>> last_modified.
>
> Take a look at:
> http://developer.postgresql.org/docs/postgres/infoschema-columns.html

Thanks Bruno!  It appears I can simply do this:

select table_name from information_schema.columns where column_name = 
'last_modified';

-- 
Jeff Frost, Owner     <jeff@frostconsultingllc.com>
Frost Consulting, LLC     http://www.frostconsultingllc.com/
Phone: 650-780-7908    FAX: 650-649-1954


pgsql-sql by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: find all tables with a specific column name?
Next
From: George Young
Date:
Subject: Re: find all tables with a specific column name?