Logical AND(AND, &&) : AND : Logic Operator MySQL TUTORIALS


MySQL TUTORIALS » Logic Operator » AND »

 

Logical AND(AND, &&)


Evaluates to 1 if all operands are non-zero and not NULL.

Evaluates to 0 if one or more operands are 0.

Otherwise NULL is returned.

mysql>
mysql> SELECT && 1;
+--------+
&& |
+--------+
|      |
+--------+
row in set (0.00 sec)

mysql> SELECT && 0;
+--------+
&& |
+--------+
|      |
+--------+
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 Logic Operator
» AND