Calculating total data size of BLOB column in a table

前端 未结 4 702
迷失自我
迷失自我 2020-12-06 04:16

I have a table with large amounts of BLOB data in a column. I am writing a utility to dump the data to file system. But before dumping, I need to check if necessary space is

4条回答
  •  一整个雨季
    2020-12-06 04:37

    You can use the MySQL function OCTET_LENGTH(your_column_name). See here for more details.

提交回复
热议问题