I would like to check if several tables exist in a database, and return a easy to understand return, I know you can check if a single table exists by running
show tables like "foo";
but is there something that could check more than one, and could return something that is not a list of tables that exists since there are more than a dozen that needs to be checked.
Perhaps counting the found tables?
Best Answer
Perhaps this is better solution for you:
It returns the count of found tables. Please list the tables in brackets and specify your database name instead of
database_name
.