In MySQL, I want to declare a default value to a varbinary
column. How do I achieve it ?
DECLARE result varbinary(8000);
SET result = 0x;
I used select CHAR_LENGTH(00101)
and it gives me a result 3. I am expecting my result to be 5 (number of characters in string). To measure the length of a varbinary
string, how do I do it ?