标签:after 资料 blog body mat from 查询 exe logs
mysql> select id,title,body from articles where match(title,body) against(‘fulltext‘ ) order by id asc; +----+-------------------------+---------------------------------+ | id | title | body | +----+-------------------------+---------------------------------+ | 8 | MySQL Full-Text Indexes | MySQL fulltext indexes use a .. | +----+-------------------------+---------------------------------+ 1 row in set (0.00 sec) mysql> select id,title,body from articles where match(title,body) against(‘fulltext‘ with query expansion ) order by id asc; +----+-------------------------+-------------------------------------+ | id | title | body | +----+-------------------------+-------------------------------------+ | 1 | MySQL Tutorial | This database tutorial ... | | 2 | How To Use MySQL | After you went through a ... | | 4 | MySQL vs. YourSQL | When comparing databases ... | | 5 | MySQL Security | When configured properly, MySQL ... | | 7 | 1001 MySQL Tricks | 1. Never run mysqld as root. 2. ... | | 8 | MySQL Full-Text Indexes | MySQL fulltext indexes use a .. | +----+-------------------------+-------------------------------------+ 6 rows in set (0.00 sec)
第一次没有开启查询扩展,只有包含关键词:fulltext的记录8被查到;第二次,包含mysql,fulltext的记录全部被返回
注意:
标签:after 资料 blog body mat from 查询 exe logs
原文地址:http://www.cnblogs.com/maggie94/p/6782462.html