Multiple MySql WHERE Between Clauses

前端 未结 3 763
暗喜
暗喜 2021-01-01 05:05

Newbie MySql programmer thanks for the patience.

Im trying to track an Id number in a table where 3 different conditions are met this is what Iv got however the quer

3条回答
  •  执笔经年
    2021-01-01 05:24

    I think the range needs to be the other way around:

    SELECT * FROM table WHERE x BETWEEN 20 AND 80 AND y BETWEEN 20 AND 120 AND z BETWEEN 10 AND 40 LIMIT 0 , 30
    

提交回复
热议问题