I have a column with it’s structure as TEXT. I would like to know how much space the 3 rows take up considering the following data in it against the TEXT column.
TEXT column
ROW1
ROW2 Hi
ROW3 ABCDEFGHIJKLMNOPQRSTUVWXYZ... (really long, let's say 1500 characters)
We have 3 rows above. Row1 is empty. Row2 has only 2 characters in it. And Row3 has upto 1500 characters. So I would like to know what is the space taken up by:
Row1:
Row2:
Row3:
The manual says: TEXT: L + 2 bytes, where L < 216 but I am a little unclear on how it works in the above cases. I also ask this because I am thinking of normalizing my DB further based on the space taken up by the TEXT column, as my application uses quite a bit of them.
Thank you.
No, other cells size doesn’t align by the max one, if it’s what you were asking.
So, it’s no more than just actual data size stored in these fields
What do you call “normalizing”?