mysql挖掘与探索------第2章 索引1-2 全文索引FULLTEXT

时间:2014-04-10 15:49:23   收藏:0   阅读:425

A 显示表的所有索引:

  show INDEX from phphi_article;

 

B删除索引:
alter table phphi_article drop INDEX fullwords;

 

C添加全文索引:

alter table phphi_article add  FULLTEXT co(content);

 

D使用全文索引:

1.直接使用

select id, title from phphi_article where MATCH(content) AGAINST(‘2014‘);

mysql挖掘与探索------第2章 索引1-2 全文索引FULLTEXT,布布扣,bubuko.com

原文:http://www.cnblogs.com/legend-song/p/3656122.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!