Consider two column type declarations:
VARCHAR(20) и VARCHAR(150) Except how is the data limitation in length, does it differ? For example, in the second version, the table will weigh more, even if all the values in the columns are NULL or something else?
Still, for example, quite often to indicate the type, which can be either true or false, the column is TINYINT(1) , and not TINYINT(255) . After all, TINYINT is 1 byte anyway, isn't it?
In general, I would like to know what the differences in such records. What is the advantage of limiting a column if it will take up as many bytes as indicated in the specification (I think). Is it loaded into memory less or does the data physically weigh less?