You should definitely read the "Silent Column Specification Changes" <http://dev.mysql.com/doc/mysql/en/Silent_column_changes.html> section of the manual.
Michael
Stormblade wrote:
This has been puzzling me. At first I thought it was something that Navicat was doing but I also tried in EMS MySQL and it does the same.
If I set the type of a field to varchar and set the length to anything less than 4 it will get converted to a char type of the same length. Now I know that char is faster. I read it can be up to 50% faster but I am curious why I am prevented from having a varchar of length less than 4?
Is it prohibitively expensive to do this in MySQL? Is it such a bad idea that they simply don't allow you to do it? Inquiring minds want to know.
-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]