执行建表的shell脚本时出现了BLOB/TEXT column 'feedids' used in key specification without a key length。查阅资料后才知道,原来Mysql数据库对于BLOB/TEXT这样类型的数据结构只能索引前N个字符。所以这样的数据类型不能作为主键,也不能是UNIQUE的。
转载于:https://www.cnblogs.com/staypatient/archive/2012/12/08/2808529.html
执行建表的shell脚本时出现了BLOB/TEXT column 'feedids' used in key specification without a key length。查阅资料后才知道,原来Mysql数据库对于BLOB/TEXT这样类型的数据结构只能索引前N个字符。所以这样的数据类型不能作为主键,也不能是UNIQUE的。
转载于:https://www.cnblogs.com/staypatient/archive/2012/12/08/2808529.html