I have this query that finds all tables and views that matches my column name of a certain database. I am using SQL SERVER 2008
SELECT table
select * from information_schema.tables
where table_name like upper('%email%'); '
Explain:
Table_name is the name of the column
all commands that helped me find the columns 'email'
>
Steps taken:
show databases ;
show tables;
select * from information_schema.tables;
select * from information_schema.tables
where table_name like upper('%email%');'