sql - mysql query to search a table name from multiple databases -


i facing problem in searching particular table_name. have around 50 databases on server , wish search table_name x created in databases. there straight-forward find exact databases in x table found in mysql through phpmyadmin.

any appreciated.

you can query information_schema database this. below query return names of databases, contains table your_table_name.

select `table_schema`  `information_schema`.`tables`  `table_name` = 'your_table_name' 

i hope looking for.

according mysql documentation information_schema database,

information_schema provides access database metadata.

metadata data data, such name of database or table, data type of column, or access privileges. other terms used information data dictionary , system catalog.


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -