Обсуждение: filter tables from database

Поиск
Список
Период
Сортировка

filter tables from database

От
Garry Saddington
Дата:
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

Re: filter tables from database

От
Thom Brown
Дата:
On 11 August 2010 15:13, Garry Saddington <garry@schoolteachers.co.uk> 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