This commit is contained in:
aozhiwei 2021-12-20 17:18:12 +08:00
commit 94e1621905

View File

@ -25,8 +25,8 @@ class ToolsController extends BaseController {
$tables = $conn->execQueryAsArray('show tables;'); $tables = $conn->execQueryAsArray('show tables;');
foreach ($tables as $table) { foreach ($tables as $table) {
$tblName = $table[0]; $tblName = $table[0];
$conn->execScript("DELETE FROM {$tblName};", $conn->execScript("DROP TABLE {$tblName};",
arary()); array());
} }
} }
} }