查询单个数据
Db::table('think_user')->where('id',1)->find();
返回值
find 方法查询结果不存在,返回 null
查询数据集
Db::table('think_user')->where('status',1)->select();
返回值
select 方法查询结果不存在,返回空数组
查询单个数据
Db::table('think_user')->where('id',1)->find();
返回值
find 方法查询结果不存在,返回 null
查询数据集
Db::table('think_user')->where('status',1)->select();
返回值
select 方法查询结果不存在,返回空数组
上一篇:thinkphp-execute
thinkphp-查询方法
thinkphp-查询某一列的值column
thinkphp-更新数据update函数
thinkphp-模板注释
thinkphp-调试halt
thinkphp-原样输出
thinkphp-性能调试
thinkphp-添加数据insert函数
thinkphp-比较标签-gt
thinkphp-比较标签-egt
thinkphp-变量调试dump
thinkphp-使用Query对象
thinkphp-比较标签-eq
thinkphp-条件判断-EMPTY
thinkphp-删除delete函数
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M