Member level points Query

Source: Internet
Author: User
$ Customer_rank_data [& #039; customerrank_minpoints & #039;] array (& #039; GT & #039;, 300); $ customer_rank_data [& #039; customerrank_maxpoints & #039;] array (& #039; LT & #039;, 300 ); why can't I find a piece of data? When the point is 300, the value is equal to or greater than the minimum value...

$ Customer_rank_data ['mermerrank _ minpoints '] = array ('gt', 300 );
$ Customer_rank_data ['mermerrank _ maxpoints '] = array ('lt', 300 );

Why can't I find a piece of data?
That is, when the integral value is 300, the value greater than or equal to the minimum value is smaller than the maximum value. However, the queried value is NULL.

Reply content:

$ Customer_rank_data ['mermerrank _ minpoints '] = array ('gt', 300 );
$ Customer_rank_data ['mermerrank _ maxpoints '] = array ('lt', 300 );

Why can't I find a piece of data?
That is, when the integral value is 300, the value greater than or equal to the minimum value is smaller than the maximum value. However, the queried value is NULL.

My side of the test said no problem, DEMO: http://sqlfiddle.com /#! 2/049288/3/0

The upstairs is correct. min should be <=. Is there a problem with the landlord's SQL?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.