bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MySQL BINARY Function

Example

SELECT BINARY "ExampleSite.com";

Definition and Usage

The BINARY function converts a value to a binary string.

This function is equivalent to using CAST(value AS BINARY) .

Syntax

BINARY
 value

Parameter Values

ParameterDescription
valueRequired. The value to convert

Technical Details

Works in:From MySQL 4.0

Previous

MySQL BIN() Function

Next

MySQL CASE Function