Mysql
 sql >> Base de Dados >  >> RDS >> Mysql

Como armazenar varbinary no MySQL?


Os dados imprimíveis podem ser inseridos usando aspas. Dados não imprimíveis podem ser inseridos usando valores hexadecimais. Ou seja:
INSERT INTO Table(VarBinaryColumn) VALUES('Printable data') -- Will be stored as binary representation using the charset of the operating system

INSERT INTO Table(VarBinaryColumn) VALUES(0x12345) -- Non-printable binary data