mysql: Specified key was too long; max key length is 767 bytes

Posted loveCrane

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql: Specified key was too long; max key length is 767 bytes相关的知识,希望对你有一定的参考价值。

问题记录:

原因 如果该字段参与了索引,在对该字段进行拓展长度时会提示超过索引最大值

我使用的解决方案, 在使用联合索引时 使用改字段的 前一部分作为联合索引

\\然后再对字段进行加长就可以了

以上是关于mysql: Specified key was too long; max key length is 767 bytes的主要内容,如果未能解决你的问题,请参考以下文章

MySQL双字符主键过长 Specified key was too long; max key length is 767 bytes

Mysql Specified key was too long; max key length is 767 bytes

mysql: Specified key was too long; max key length is 767 bytes

解决Code First MySql数据库 Specified key was too long; max key length is 767 bytes异常

hive异常:创建MySQL时Specified key was too long; max key length is 1000 bytes

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