filter tables from database

Started by Garry Saddingtonover 15 years ago2 messagesgeneral
Jump to latest
#1Garry Saddington
garry@schoolteachers.co.uk

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

#2Thom Brown
thom@linux.com
In reply to: Garry Saddington (#1)
Re: filter tables from database

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