4
I understood the difference between CHAR
and VARCHAR
.
If I want to insert in a field VARCHAR(10)
the word 'house', that word in the bank will take 4 bytes.
If I want to insert in a field CHAR(10)
the word 'house', that word in the bank will occupy 10 bytes.
It is quite clear the difference for me, my only doubt is that amount of bytes compared to the NULL
. If I leave the field VARCHAR NULL
will stay 0 bytes, in the case of CHAR
will stay 10 bytes locked even though NULL
?