Testing against a date range

suggest change

Although it is very tempting to use BETWEENAND … for a date range, it is problematical. Instead, this pattern avoids most problems:

WHERE x >= '2016-02-25'
  AND x  < '2016-02-25' + INTERVAL 5 DAY

Advantages:

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents