What is the MySQL VARCHAR max size?
I have searched on stackoverflow about varchar vs text and studied the documentation.
Iam not sure if i understood it the right way but let me ask you this. I have got Mysql version 5.5.34
and yes the maximum varchar size is 65535
bytes and the text content on my website cannot exceed more than 600 characters, I would prefer using varchar(600)
rather than Text
.
Since varchar is stored inline with table and faster and when I read all the answers of the question.
rajukoyilandy answer
varchar has 64K row limit
paxdiablo answer
if your row size is approaching 64K, you may want to examine the schema of your database. It's a rare table that needs to be that wide in a properly set up (3NF) database - it's possible, just not very common.
If you want to use more than that, you can use the BLOB or TEXT types. These do not count against the 64K limit of the row
So I have decided to use Text
http://dev.mysql.com/doc/refman/5.0/en/column-count-limit.html
When I have seen this documentation on the very top it says
Every table (regardless of storage engine) has maximum row size of 65,535 bytes.
Storage engines may place additional constraints on this limit,
reducing the effective maximum row size
My question is, So no matter what you use Text
or Varchar
, the row limit is 65kb? or if you use Text
there is no row limit? Any help is greatly appreciated.