mysql - Getting all table names which contains a specific keyword inside itself -


i'm facing small problem, have database has 180 tables in it. going through of them 1 one wasting time. hence, thought i'll turn here help.

the problem facing, want search specific keyword tables , columns. lets got database d tables t1, t2 , on, tables have different column names , string want see must like '%connect%'.

--edit: clarify, %connect% must inside table contents (i.e. inside row of table).

if not possible single query, maybe can point me right direction how programmatically.

many , best regards,

janno

table's names:

select t.table_name information_schema.tables t t.table_name '%connect%'; 

column's names:

select column_name information_schema.columns table_schema = 'my_database' , table_name = 'my_table'; 

Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -