DB数据库文件
This commit is contained in:
11
server/db/count_config_tables.php
Normal file
11
server/db/count_config_tables.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
define('BASE_PATH', dirname(__DIR__));
|
||||
require BASE_PATH . '/vendor/autoload.php';
|
||||
\Dotenv\Dotenv::createUnsafeMutable(BASE_PATH)->load();
|
||||
\Webman\ThinkOrm\ThinkOrm::start(null);
|
||||
use support\think\Db;
|
||||
|
||||
foreach (['dice_config', 'dice_ante_config', 'dice_game', 'dice_lottery_pool_config'] as $table) {
|
||||
echo "{$table} dept1123: " . Db::table($table)->where('dept_id', 1123)->count() . "\n";
|
||||
}
|
||||
Reference in New Issue
Block a user