Re: table column names - search - Mailing list pgsql-sql

From Marcin Krawczyk
Subject Re: table column names - search
Date
Msg-id 95f6bf9b0801141030h1ffcdad3q1d8e79f0aba4335@mail.gmail.com
Whole thread Raw
In response to Re: table column names - search  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-sql
Thanks a lot.

2008/1/14, Peter Eisentraut <peter_e@gmx.net>:
Am Montag, 14. Januar 2008 schrieb Marcin Krawczyk:
> Hi all. I would like to know if there's a way to obtain a list of tables
> containing specified column name? Using standard LIKE '%string' syntax
> would be great.

SELECT table_schema, table_name FROM information_schema.columns WHERE
column_name LIKE '%name%';

Add DISTINCT and other columns to taste.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

pgsql-sql by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: table column names - search
Next
From: "Medi Montaseri"
Date:
Subject: Re: UTF8 encoding and non-text data types