Is there a way to check if a table exists without selecting and checking values from it?
That is, I know I can go SELECT testcol FROM testtable and check the count of fields returned, but it seems there must be a more direct / elegant way to do it.
If you want to be correct, use INFORMATION_SCHEMA.
Alternatively, you can use
SHOW TABLESIf there is a row in the resultset, table exists.