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;');
foreach ($tables as $table) {
$tblName = $table[0];
$conn->execScript("DELETE FROM {$tblName};",
arary());
$conn->execScript("DROP TABLE {$tblName};",
array());
}
}
echo '111';
}
}