This commit is contained in:
aozhiwei 2021-12-20 12:12:15 +08:00
parent 133cfec9dd
commit c5486b4c1b

View File

@ -25,10 +25,11 @@ 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());
} }
} }
echo '111';
} }
} }