expr BETWEEN min AND max : BETWEEN AND : Comparison Functions Operators MySQL TUTORIALS


MySQL TUTORIALS » Comparison Functions Operators » BETWEEN AND »

 

expr BETWEEN min AND max


expr NOT BETWEEN min AND max is the same as NOT (expr BETWEEN min AND max).

If expr is greater than or equal to min and expr is less than or equal to max, BETWEEN returns 1.

Otherwise it returns 0.

This is equivalent to the expression (min

mysql>
mysql> SELECT BETWEEN AND 3;
+-------------------+
BETWEEN AND |
+-------------------+
|                 |
+-------------------+
row in set (0.00 sec)

mysql>



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Comparison Functions Operators
» BETWEEN AND