Query about a certain interval of Mysql


select * from tb_member_level
where (( 70 >= integral_min and
  70 <= integral_max )
or ( 79 >= integral_min and
  79 <= integral_max) or ( integral_min >=70 and integral_max<= 79 ))
and flag =1 ;

the value of the input Whether it is between 70-79, it is applicable to the member points setting.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326376174&siteId=291194637