Differentiate between BINARY and VARBINARY in MySQL.BINARY and VARBINARY have the same nature of differences like CHAR and VARCHAR. Even though BINARY and VARBINARY are binary byte data types, they have differences when it comes to storage. BINARY stores values in fixed lengths while VARBINARY stores in variable depending on the type of values. Values in BINARY data type are padded with 0x00 which is not the case with VARBINARY.
|