欢迎光临
感谢一路有你

数据库查询中的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  )->limit($limit)
->order('time desc,id desc')->select();

and k1 between $start and $end

赞(0) 打赏
未经允许不得转载:王明昌博客 » 数据库查询中的between用法
分享到: 更多 (0)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏