mysql常用字符集
utf8 一个字符3bytes
utf8mb4 一个字符4bytes
单列索引长度不能超过767bytes 超过取前缀767btyes长度 以下测试使用utf8(utf8mb4同样适用)

组合索引中单列长度不能超过767bytes 总长度不能超过3072bytes


mysql常用字符集
utf8 一个字符3bytes
utf8mb4 一个字符4bytes
单列索引长度不能超过767bytes 超过取前缀767btyes长度 以下测试使用utf8(utf8mb4同样适用)
组合索引中单列长度不能超过767bytes 总长度不能超过3072bytes
本文标题:mysql InnoDB 索引长度问题
本文链接:https://www.haomeiwen.com/subject/rsmgqqtx.html
网友评论