I need to write a query that will return results if all the tables I’m asking for exist. I know this exists:
show tables like 'user'
Just not sure how to extend that for multiple tables. I know this is invalid code, but something like
show tables like 'user' AND show tables like 'site' AND ...
Thank you!
Mmm, I realised there was a problem with that query. It returns just one record if all the tables exist. This would be a better solution