BIT_COUNT

Sintassi

BIT_COUNT(N)

Spiegazione

Restituisce il numero di bit aperti presenti nell'argomento N.

Esempi

MariaDB [(none)]> SELECT BIT_COUNT(29), 
    -> BIT_COUNT(b'101010');
+---------------+----------------------+
| BIT_COUNT(29) | BIT_COUNT(b'101010') |
+---------------+----------------------+
|             4 |                    3 |
+---------------+----------------------+

Commenti

Sto caricando i commenti......
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.