Buongiorno a tutti, dovrei eliminare da un DB tutte le tabelle il cui nome NON contiene l'anno 2018
Per procedere per gradi e non fare casini volevo prima fare uno script per mostrare tutte le tabelle il cui nome contiene per esempio l'anno 2014....ho provato questa query ma non va....qualcuno sa aiutarmi....
$sql="SHOW TABLES FROM ireport where TABLE_NAME LIKE '2014%'";
$result=mysql_query($sql);
while($fetch = mysql_fetch_row($result)) {
$arrayTabelle[] = $fetch[0];
}
for($i=0; $i<5; $i++) {
echo $arrayTabelle[$i]."<br>";
}
grazie a tutti!