Re: is there a refactor - Mailing list pgsql-sql

From Adrian Klaver
Subject Re: is there a refactor
Date
Msg-id 201104050744.52471.adrian.klaver@gmail.com
Whole thread Raw
In response to is there a refactor  (John Fabiani <johnf@jfcomputer.com>)
Responses Re: is there a refactor  (Peter Steinheuser <psteinheuser@myyearbook.com>)
Re: is there a refactor  (John Fabiani <johnf@jfcomputer.com>)
List pgsql-sql
On Tuesday, April 05, 2011 7:27:24 am John Fabiani wrote:
> Hi,
> I would like to have a simple way to retrieve information for a field name.
> By that I mean have some SQL select that will return all the tables a field
> name exist within a database.  I did not find anything with google but of
> course google depends on the search string.
> 
> Thanks in advance,
> Johnf

test(5432)aklaver=>SELECT table_name from information_schema.columns  where 
column_name = 'id';  table_name   

----------------user_testtable2table1hoursjedit_testtopicst2stoneserial_testmessagesbinary_testuser_testtimestamp_testrole_tpy_testmoney_testlock_testlocal_1lang_testinterval_testfoobfooafldlengthfk_1default_testcsv_nullcheck_twocheck_testarray_test
(29 rows)

-- 
Adrian Klaver
adrian.klaver@gmail.com


pgsql-sql by date:

Previous
From: Viktor Bojović
Date:
Subject: Re: is there a refactor
Next
From: Peter Steinheuser
Date:
Subject: Re: is there a refactor