I am using the InnoDB plugin in Barracuda format with:
ROW_FORMAT=DYNAMIC
If I define the field as VARCHAR(255) , and then insert a record that is NULL for this field, will this record still use 255 bytes in storage for the VARCHAR field? Or there will be no lost storage space?
In the corresponding note, if I define the field as INT , then, apparently, each record will still use 32 bits for this field, even if it is NULL . It is right?
thanks
source share