我的代码:
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