If I set varchar (250) say on charset latin1 when I add a value say ‘abc’ characters does it means that the data allocated for it is 251bytes or 4bytes? Would it be the same way for other data types? Please advise?
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.
When you have a varchar(250) and you add ‘abc’ then 3 bytes/characters are allocated.
If you had user char(250) then 250 bytes/characters would have been allocated.
Note that for VARCHAR a minimal storage overhead is used internally to represent the datatype.