Questions tagged «mysql-error-1170»

15
MySQL错误:没有密钥长度的密钥规范
我有一个主键为varchar(255)的表。在某些情况下,255个字符不够用。我尝试将字段更改为文本,但是出现以下错误: BLOB/TEXT column 'message_id' used in key specification without a key length 我怎样才能解决这个问题? 编辑:我还应该指出,该表具有包含多个列的复合主键。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.