Home  >  Article  >  Backend Development  >  会员等级积分的查询问题

会员等级积分的查询问题

WBOY
WBOYOriginal
2016-06-06 20:39:201276browse

会员等级积分的查询问题

$customer_rank_data['customerrank_minpoints']= array('GT',300);
$customer_rank_data['customerrank_maxpoints']= array('LT',300);

我要找出来一条数据 为什么找不出来
也就是积分为300的时候 大于等于最小值 小于最大值 应该能查出来 但是查询到的是NULL

回复内容:

会员等级积分的查询问题

$customer_rank_data['customerrank_minpoints']= array('GT',300);
$customer_rank_data['customerrank_maxpoints']= array('LT',300);

我要找出来一条数据 为什么找不出来
也就是积分为300的时候 大于等于最小值 小于最大值 应该能查出来 但是查询到的是NULL

我这边测试表示没有问题呀,DEMO: http://sqlfiddle.com/#!2/049288/3/0

会员等级积分的查询问题

楼上的是对的,min应该是

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn