thinkphp 数据库查询查询我想查询一个值到某一个值之间的数据该怎么查?

2024-11-18 18:16:40
推荐回答(2个)
回答1:

$map['dengji'] = array('粗销BETWEEN', '0, 200');
D('冲凳敏Model'散枝)->where($map)->select();

回答2:

D("Model")->where("dengji >0 and dengji <200")->select();