MySQL greater than or equal to operator is ignoring its or equal to obligation

前端 未结 2 2039
渐次进展
渐次进展 2021-02-15 10:06

If a price in a row is 38.03, then the following search restrictions should all return the row containg the result.

WHERE price >= \'38.02\' AND pr

2条回答
  •  情深已故
    2021-02-15 10:42

    When you use quotes (') your variables will be treated as strings. I think thats your problem.

    Try: WHERE price >= 38.03 AND price <= 38.03

提交回复
热议问题