MySQL Tutorial/Math Numeric Functions/BIT OR

Материал из SQL эксперт
Перейти к: навигация, поиск

BIT_OR(expr): Returns the bitwise OR of all bits in expr.

The calculation is performed with 64-bit (BIGINT) precision.

This function returns 0 if there were no matching rows.



   <source lang="sql">

mysql> mysql> mysql> select BIT_OR(1); +-----------+ | BIT_OR(1) | +-----------+ | 1 | +-----------+ 1 row in set (0.00 sec)</source>