How to get record size in mysql

How to get record size in MySql if the table contains fields of type TEXT or BLOB?

Is it possible to get the size of a record or table using the sql statement?

+4
source share
1 answer

To calculate the size of a string or blob in bytes, use LENGTH(YourColumn) .

To calculate the number of characters in a text string, use CHAR_LENGTH(YourTextColumn) .

+3
source

Source: https://habr.com/ru/post/1305923/


All Articles