MySQL Forums
Forum List  »  Newbie

Re: How much space take each column in table [RESOLVED]
Posted by: Brano Gerzo
Date: September 15, 2010 12:58AM

Rick,

my respect, this is exactly what I was looking for. Now I know, my blob used almost 10GB of space, I am not sure, if something like this will work:

SELECT (AVG(LENGTH(blob_field)) + 2) * COUNT(*)/1024/1024 FROM tbl;

get the value in MB.

Also thanks for pointing for ANALYSE(), didnt aware of that.

One is learning all the life!

Options: ReplyQuote


Subject
Written By
Posted
Re: How much space take each column in table [RESOLVED]
September 15, 2010 12:58AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.