Important
New database features are no longer connected to engine versions; features are now enabled independently during scheduled update windows, and “major” and “minor” releases no longer exist in Helios. Please visit the release notes to view the latest features available in your database clusters.
BINARY
On this page
The BINARY() function casts the input to a binary data type.
There is usually no visible effect on the printed value; what changes is the rules for comparison and sorting.
Syntax
BINARY( input )
Return Type
A binary object.
Examples
SELECT 'ohai' = 'OHAI', BINARY('ohai') = 'OHAI';
+-----------------+-------------------------+
| 'ohai' = 'OHAI' | BINARY('ohai') = 'OHAI' |
+-----------------+-------------------------+
| 1 | 0 |
+-----------------+-------------------------+Last modified: