MySQL BIN() Function
ExampleGet your own SQL Server
Return a binary representation of 15:
SELECT BIN(15);
Try it Yourself »
Definition and Usage
The BIN() function returns a binary representation of a number, as a string value.
Syntax
BIN(number)
Parameter Values
Parameter | Description |
---|---|
number | Required. A number |
Technical Details
Works in: | From MySQL 4.0 |
---|