type
VARBINARY
MySQL variable-length byte strings have a byte limit, without fixed-length padding. They do not use character collation. Example target: MySQL 8.4. Run in a disposable database; examples need no existing tables.
Formal Syntax & Structure
sql syntaxsql
VARBINARY(n)Working Example
Example Snippetsql
CREATE TEMPORARY TABLE lab(v VARBINARY(3)); INSERT INTO lab VALUES (X'4142'); SELECT HEX(v) FROM lab;