Given a binary(16) column, how do I display its value as a hexadecimal number? I\'ve been experimenting in the console a little below, and I\'m not getting the results I exp
Just try this and you will clear your mind:
select conv(cast(10 as binary), 10, 16);
BINARY data type is treated as decimal string by default