“Specified key was too long; max key length is 1000 bytes”

前端 未结 1 1177
灰色年华
灰色年华 2020-12-11 00:58

I can\'t create index on varchar(500).

MySQL: Specified key was too long; max key length is 1000 bytes

1条回答
  •  囚心锁ツ
    2020-12-11 01:37

    latin1 = 1 byte = 1 character
    uft8 = 3 byte = 1 character
    gbk = 2 byte = 1 character
    

    0 讨论(0)
提交回复
热议问题