//查询一个数据专用 DB::table(‘think_user‘)->where(‘id‘,1)->find(); 查询的结果不存在,返回null //查询数据集使用: DB::table(‘think_user‘)->where(‘id‘,1)->select(); select 查询结构不存在,返回空数组
TP5语法
原文:https://www.cnblogs.com/xiong-hua/p/11833914.html