Will a TEXT field use the same storage space in the database no matter if it is empty, got a few characters or filled to the limit?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The manual page Data Type Storage Requirements describes the storage requirements of each datatype for the MyISAM engine in more detail.
*w is the number of bytes required for the maximum-length character in the character set
So in conclusion the number of bytes of storage required to store a string in a TEXT column depends on the length of the string. This differs from
CHAR(100)where the same amount of storage is required regardless of the length of the string stored.