Re: Getting all tables which contains a specific column name

From: "Ridvan Lakas ng Bayan S(dot) Baluyos" <ridvan(at)baluyos(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Getting all tables which contains a specific column name
Date: 2009-04-22 06:48:05
Message-ID: 7f4f9efa0904212348y235ed891sfe7234747f7e1609@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Ok I got it already.

SELECT table_name
FROM information_schema.columns
WHERE column_name = 'is_active'
ORDER BY ordinal_position;

I don't know if this is correct. Please correct me if I'm wrong.

Thanks,

Ridvan
On Wed, Apr 22, 2009 at 2:45 PM, Ridvan Lakas ng Bayan S. Baluyos <
ridvan(at)baluyos(dot)net> wrote:

> 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?
>
>
> Thanks,
>
> Ridvan
>
> --
> リヅバン バルヨス
> ridvan(dot)baluyos(at)qualservcentral(dot)com
> http://ridvan.baluyos.net
> http://www.onxiam.com/people/rbaluyos
>
> Registered Linux User #439466
> Registered Ubuntu User #16034
> Q: Have you heard of the Object-Oriented way to get wealthy?
> A: Inheritance.
>

--
リヅバン バルヨス
ridvan(dot)baluyos(at)qualservcentral(dot)com
http://ridvan.baluyos.net
http://www.onxiam.com/people/rbaluyos

Registered Linux User #439466
Registered Ubuntu User #16034
Q: Have you heard of the Object-Oriented way to get wealthy?
A: Inheritance.

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message A. Kretschmer 2009-04-22 06:59:59 Re: Getting all tables which contains a specific column name
Previous Message Ridvan Lakas ng Bayan S. Baluyos 2009-04-22 06:45:08 Getting all tables which contains a specific column name