I have 19 MySQL databases, where a number of tables get created every year as per event (there are 19 events going on), but every year there are new competitions that get introduced so new tables get created. Competitions are not the same in all 19 events.
We are preparing central system to keep a track of data of all 19 events. Now here is the situation where we have to find out whether a table exist or not; if exist then fire query.
So, in MySQL, how to find if “X” table exist or not?
Execute
show tables
in mysql or PHPmyadmin it will list down all the tables
Or
You can find specific table
show tables LIKE ‘%%’
E.g show tables LIKE ‘%customer%’