限时免费试用:欢迎注册 api.bigmodel.org ,快速体验大模型 API 接入服务。

Mysql

数据库查询中的between用法

$list = $this->model->table('post')->field('title,pic,id,author, time,is_ok')->where($condition) ->where('author="'.$uname.'"'.' and time between '.$time_l .' and '.$time_r )->limi

作者
王明昌
发布时间
最后更新
$list = $this->model->table('post')->field('title,pic,id,author, time,is_ok')->where($condition)
->where('author="'.$uname.'"'.' and  time between '.$time_l .' and '.$time_r  )->limit($limit)
->order('time desc,id desc')->select();
and k1 between $start and $end
0/500
友善分享您的看法。
反馈邮箱