|

Sintassi

|

Spiegazione

OR tra bit. Converte i valori in binari e li confronta come bit. Se uno dei bit corrispondenti è 1, anche il bit risultante è 1.

Si veda AND tra bit.

Esempi

MariaDB [(none)]> SELECT 2|1;
+-----+
| 2|1 |
+-----+
|   3 |
+-----+

MariaDB [(none)]> SELECT 29 | 15;
+---------+
| 29 | 15 |
+---------+
|      31 |
+---------+

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.