mysql匹配错误

时间:2014-07-08 12:26:43

标签: mysql sql

我的代码:

CREATE TABLE  `search` (
  `tablekey` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `col1` varchar(200) DEFAULT NULL,
  PRIMARY KEY (`tablekey`),
  FULLTEXT KEY `col1` (`col1`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;


INSERT INTO `search` (`tablekey`, `col1`) VALUES
(1, 'data for hello user'),
(2, 'data'),
(3, 'data user'),
(4, 'hello what is user for data');

现在我执行了这个查询:

Select * from search where match (col1) against('hello' IN BOOLEAN MODE);

并显示empty set

另见sqlfiddle

1 个答案:

答案 0 :(得分:0)

hello位于MyISAM个{{1}}表中。

请参阅Full-Text Stopword List