MySQL用全文本搜索,表中有数据为什么查询结果是空集合
创建表
程序代码: create table text(
-> id int not null auto_increment,
-> texts text null,
-> primary key(id),
-> fulltext(texts))engine=myisam;跟新原有的数据update text set texts='happer new year!';查看表中的数据
程序代码:select * from text; +----+------------------+ | id | texts | +----+------------------+ | 1 | happer new year! | | 2 | happer new year! | | 3 | happer new year! | +----+------------------+j进行全文本搜索
select texts from text where match(texts) against('new');
Empty set (0.00 sec)






