Binary literals

You are viewing an old version of this article. View the current version here.

Binary literals can be written in one of the following formats: b'value', B'value' or 0bvalue, where value is a string composed by 0 and 1 digits.

Binary literals are interpreted as binary strings, and is convenient to represent VARBINARY, BINARY or BIT values.

To convert a binary literal into an integer, just add 0.

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.