CREATE TABLE `t1` (`id` int(11) NOT NULL AUTO_INCREMENT,`msg` varchar(20) NOT NULL DEFAULT "",`crcmsg` int(15) NOT NULL DEFAULT "0",PRIMARY KEY (`id`)) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8//插入数据
insert into t1 (msg) values("www.baidu.com"),("www.sina.com");
alter table t1 add index msg(msg(5));update t1 set crcmsg=crc32(msg);
alter table t1 add index crcmsg(crcmsg);开始做测试