|
我有一张存放文章的表
news(id int auto_increment primary key,author text,title text,body text,time text),
我想创建一个索引
alter table news add index search_words(body)
出现错误:
ERROR 1170 (42000): BLOB/TEXT column 'body' used in key specification without a key length
在mysql论坛上也有人有同样的问题,不过没见回复。
哪位大侠知道怎么解决这个问题? |
|