InnoDB compares CHAR and VARCHAR strings of different lengths such that the remaining length in the shorter string is treated as if padded with spaces. 没有看懂手册里面这句话的含义,单个单词都知道意思,整合在一起理解不了。

解决方案 »

  1.   

    假如'a'和'ab'一个是char一个是varchar,
    则innodb比较这两个类型的字符串的话 则是'a '和'ab'比较
      

  2.   

    哪个章节看到的这个说明?从英文原义上来说,是INNODB在比如 CHAR 和 VARCHAR的时候,会把短的那个字符串在后面填充空格,然后进行比较。
      

  3.   


    InnoDB compares CHAR and VARCHAR strings of different lengths//
    such that //
    the remaining length in the shorter string //
    is treated as if padded with spaces.  
      

  4.   

    首先,你应该断出such that是一个连词词组,“如此这样....,如此以致"的意思,然后分别译前后半部分,意思大概就明了了。