MySQL in the binary varbinary format data storage problem

Create a table :
CREATE TABLE `test_varbinary` (
`id` int(4) NOT NULL ,
`buf` varbinary(8000)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

Performs an insert statement:
insert into test_varbinary
select 1,0x12345646;

Why the result is like this:
1 4VF

Please see Daniel resolved

Started by Teresa at November 25, 2016 - 12:16 AM

0x12345646; The ASCII code is not '4VF', no problem ah.

Posted by Jeff at December 10, 2016 - 12:53 AM

select id,bin(buf) from tablename;

Posted by Judy at December 15, 2016 - 1:50 AM