List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:September 27 2004 3:38pm
Subject:Re: [Q] Preventing VARCHAR to TEXT conversion OR Heap tables...
View as plain text  
At 10:35 -0400 9/27/04, Little, Tim wrote:
>Is there a way to prevent VARCHAR fields from being automatically converted
>to TEXT fields.  I have a few VARCHAR fields of around 200-300 characters
>(usually less) that I'd rather have in Memory Heap tables...

This conversion happens for VARCHAR(n) where n is larger than the maximum
length of a VARCHAR, which is 255.

To prevent the conversion, don't use n > 255.

>But since VARCHARs are often converted to TEXT after a certain length, this
>current structure is "immune" to heap storage.
>
>Any suggestions?


-- 
Paul DuBois, MySQL Documentation Team
Madison, Wisconsin, USA
MySQL AB, www.mysql.com
Thread
[Q] Preventing VARCHAR to TEXT conversion OR Heap tables...Tim Little27 Sep
  • Re: [Q] Preventing VARCHAR to TEXT conversion OR Heap tables...Paul DuBois27 Sep