rdice-e+AXbWqSrlAAvxtiuMwx3w at public.gmane.org
Mon Jul 20 14:40:52 UTC 2009
> When creating a table in MySQL varchar supports a length of up to 255
> characters. Does anybody know what I use if I want to support say 10000 or
> even higher?
This is going to depend somewhat on what version of MySQL you are using.
Newer versions allow you to specify varchar up to varchar(65535). For
example, see http://dev.mysql.com/doc/refman/5.1/en/char.html
If you need more than that, consider using the 'text' data type.
Before you use text data types you should read up on the various differences
between it and varchar in terms of text encoding, padding, indexing, storage
and efficiency. It's all mentioned in the online manual, but you need to
look around in a few places for it.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Legacy