Mysql
 SQL >> Datenbank >  >> RDS >> Mysql

MySQL-Tabellenexistenz ohne Exceptions prüfen

Eine einfache Prüfung:

$result = mysql_query("SHOW TABLES LIKE 'myTable'");
$tableExists = mysql_num_rows($result) > 0;