Search Postgresql Archives

Re: filter tables from database

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11 August 2010 15:13, Garry Saddington <garry@xxxxxxxxxxxxxxxxxxxx> wrote:
> I can retrieve the table names in my database, but I would like to filter
> them based on the name of a field. Is this possible?
> Thanks
> Garry
>
> --

Hi Garry,

You can do this:

SELECT table_name
FROM information_schema.columns
WHERE column_name = 'put_column_name_here'

Regards

Thom Brown
Registered Linux user: #516935

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux