I need some clarification of the maximum length of the varchar field in MySQL.
I always thought that the maximum length is 255 (255 characters), but that could be the source of my confusion). Having looked at the database tables created by an external company, I worked with setting the field as varchar (20000), containing xml pieces longer than 255 characters. Why does it work? Is a value of 20,000 valid?
A little googling showed that in mysql, varchar has a limit of 65,535 bytes, and I see varchar (65535) in use , since the limit of 255 refers to this?
mysql varchar
Zoe Aug 20 '09 at 1:17 2009-08-20 01:17
source share