16
我無法在varchar(500)
上創建索引。「指定的密鑰太長;最大密鑰長度爲1000字節」
MySQL的:Specified key was too long; max key length is 1000 bytes
我無法在varchar(500)
上創建索引。「指定的密鑰太長;最大密鑰長度爲1000字節」
MySQL的:Specified key was too long; max key length is 1000 bytes
latin1 = 1 byte = 1 character
uft8 = 3 byte = 1 character
gbk = 2 byte = 1 character
完全回答這個問題給出[這裏](http://stackoverflow.com/questions/1814532/1071-specified-key-was-too-long-max -key長度是-767字節/ 1814594#1814594)。 – 2011-11-10 09:07:11
這是1行簡短且完全可行的解決方案:http://stackoverflow.com/questions/1814532/1071-specified-key-was-too-long-max-key-length-is-767-bytes/22873006#22873006 – 2014-04-04 21:06:56