BINARY
This page is part of MariaDB's Documentation.
The parent of this page is: SQL Operators for MariaDB Enterprise Server
Topics on this page:
Overview
Casts strings to binary values.
EXAMPLES
SELECT 'foo' = BINARY 'FOO';
+----------------------+
| 'foo' = BINARY 'FOO' |
+----------------------+
| 0 |
+----------------------+
SELECT 'foo' = CAST(BINARY 'FOO' AS CHAR);
+------------------------------------+
| 'foo' = CAST(BINARY 'FOO' AS CHAR) |
+------------------------------------+
| 1 |
+------------------------------------+
CHANGE HISTORY
EXTERNAL REFERENCES
Additional information on this topic may be found in the MariaDB Public Knowledge Base.