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

Re: Getting all tables which contains a specific column name

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Getting all tables which contains a specific column name
Date: 2009-04-22 06:59:59
Message-ID: 20090422065959.GB9695@a-kretschmer.de (view raw or flat)
Thread:
Lists: pgsql-novice
In response to Ridvan Lakas ng Bayan S. Baluyos :
> Hi list,
> 
> How do I get all the tables which contains a specific column name? For example,
> I want to get all tables that has an `is_active` column in them?

select table_schema, table_name from information_schema.columns where
column_name = 'is_active';


Regards, Andreas
-- 
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net

In response to

pgsql-novice by date

Next:From: Robert CampbellDate: 2009-04-22 12:18:43
Subject: Workaround for bug #4608?
Previous:From: Ridvan Lakas ng Bayan S. BaluyosDate: 2009-04-22 06:48:05
Subject: Re: Getting all tables which contains a specific column name

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