TP5语法

//查询一个数据专用
DB::table('think_user')->where('id',1)->find();
查询的结果不存在,返回null
//查询数据集使用:
DB::table('think_user')->where('id',1)->select();
select 查询结构不存在,返回空数组

猜你喜欢

转载自www.cnblogs.com/xiong-hua/p/11833914.html
tp5
今日推荐