太长的话 还是建议用text格式吧

解决方案 »

  1.   

    alter table tt modify column cc varchar(2000);
    字符太多使用text
      

  2.   

    Prior to MySQL 5.0.3, a VARCHAR column with a length specification
    greater than 255 is converted to the smallest TEXT type that can hold
    values of the given length. For example, VARCHAR(500) is converted to
    TEXT, and VARCHAR(200000) is converted to MEDIUMTEXT. However, this
    conversion affects trailing-space removal.以上是mysql varchar类型的官方帮助文档,所以,mysql直接帮你转换成text类型的了。
      

  3.   

    可以修改varchar的长度的!
    不过都>1000了,还是text吧!
      

  4.   


    你这只是mysql5.03版本之前会转换,现在很少有人用5.03之前的版本了吧
      

  5.   


    你这只是mysql5.03版本之前会转换,现在很少有人用5.03之前的版本了吧
    妈呀,不认识prior to这个单词的意思多可怕,我一直以为之后呢,,囧