MySQL Forums
Forum List  »  Newbie

Re: How much space take each column in table
Posted by: Rick James
Date: September 14, 2010 09:49PM

Those links say, for example, that
a MEDIUMINT cell takes 3 bytes
And, if it is NULLable, it needs an extra bit for that flag. Etc.

If you know the number of rows, (as available from SHOW TABLE STATUS), multiply that by the size of the cell to get the space taken for the entire column.

Options: ReplyQuote


Subject
Written By
Posted
Re: How much space take each column in table
September 14, 2010 09:49PM


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.