Use the bitwise OR (|) operator to manipulate the bit values. : OR « Function « SQL / MySQL






Use the bitwise OR (|) operator to manipulate the bit values.

   
mysql>
mysql>
mysql> SELECT 8 | 8, 8 | 10, 8 | 16;
+-------+--------+--------+
| 8 | 8 | 8 | 10 | 8 | 16 |
+-------+--------+--------+
|     8 |     10 |     24 |
+-------+--------+--------+
1 row in set (0.00 sec)

   
    
    
  








Related examples in the same category

1.The bitwise OR operator