use support\Db;
获取所有表段
$fields = Db::schema()->getColumnListing(表名);
判断表是否存在
hasTable
判断某个表段是否存在
hasColumn

最后修改:2024 年 01 月 09 日
如果觉得我的文章对你有用,请随意赞赏