A
A
Andrey San2015-10-27 14:18:22
MySQL
Andrey San, 2015-10-27 14:18:22

How to find out the size (in Mb) of a query in mysql?

Good afternoon, there is mysql and a certain query that displays the result, you need to know the size of the received response, how to do this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Optimus, 2015-10-27
Pyan @marrk2

strlen()? ))

M
Max, 2015-10-27
@MaxDukov

select sum(row_size) 
from (
  select 
    char_length(column1)+
    char_length(column2)+
    char_length(column3)+
    char_length(column4) ... <-- перечисляем здесь все колонки
  as row_size 
  from your_table
) as tbl1;

something like this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question