-7

What is the different between “between” and “>= and <=" in mysql query? There is any performance changes between both of them?

Meldin Xavier
  • 197
  • 4
  • 14

1 Answers1

1

The boundaries in x > y AND x < z are exclusive, whereas in x BETWEEN y AND z they're inclusive. So 5 is BETWEEN 5 AND 6, but it's not > 5. BETWEEN would be equivalent to using >= and <=.

shmosel
  • 49,289
  • 6
  • 73
  • 138