This is a read-only copy of the MariaDB Knowledgebase generated on 2024-12-22. For the latest, interactive version please visit https://mariadb.com/kb/.

|

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 |
+---------+
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.