bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MySQL BIN() Function

Example

SELECT BIN(15);

Definition and Usage

The BIN() function returns a binary representation of a number, as a string value.

Syntax

BIN(
number
)

Parameter Values

ParameterDescription
numberRequired. A number

Technical Details

Works in:From MySQL 4.0

Previous

MySQL YEARWEEK() Function

Next

MySQL BINARY Function