CREATE TABLE user (id binary(16)); INSERT INTO user VALUES (123); SELECT bin(id) FROM user; SELECT hex(id) FROM user;
The first one prints out 11
11