$where = [ ‘and‘, [‘<‘, ‘minscore‘, $score], [‘>‘, ‘maxscore‘, $score], ]; //查询满足minscore<$score并且maxscore>$score 的记录
yii
原文:https://www.cnblogs.com/bneglect/p/11295828.html