Here is a solution how calculate table size, but what about column? Is there apporoach to calculate data which stored only for 1 column of table?
Note
The question is about data size, not data type size.
You can use below query that will return data size in bytes:
SELECT sum(char_length(comment)) FROM tbl_comments
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With