[MySQL]BLOB/TEXT column ‘xxx‘ used in key specification without a key length

报错信息

SQLSTATE[42000]: Syntax error or access violation: 1170 BLOB/TEXT column 'xxx' used in key specification without a key length

原因:

MySQL的唯一索引不支持text类型的字段!

你可能感兴趣的:(唯一索引,索引,key,length,42000,BLOB/TEXT)