-- phpMyAdmin SQL Dump
-- version 2.11.6
-- http://www.phpmyadmin.net
--
-- 主机: localhost
-- 生成日期: 2010 年 02 月 11 日 02:06
-- 服务器版本: 5.0.51
-- PHP 版本: 5.2.6SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";--
-- 数据库: `test`
---- ----------------------------------------------------------
-- 表的结构 `test`
--CREATE TABLE IF NOT EXISTS `test` (
`id` int(11) NOT NULL auto_increment,
`question` varchar(200) default NULL,
PRIMARY KEY (`id`),
FULLTEXT KEY `question_2` (`question`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;--
-- 导出表中的数据 `test`
--INSERT INTO `test` (`id`, `question`) VALUES
(1, 'In the following database comparison one Apple a day');为question字段建立了全文索引之后,使用语句select * from test where match(question) against ('database')返回的结果总是0行
-- version 2.11.6
-- http://www.phpmyadmin.net
--
-- 主机: localhost
-- 生成日期: 2010 年 02 月 11 日 02:06
-- 服务器版本: 5.0.51
-- PHP 版本: 5.2.6SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";--
-- 数据库: `test`
---- ----------------------------------------------------------
-- 表的结构 `test`
--CREATE TABLE IF NOT EXISTS `test` (
`id` int(11) NOT NULL auto_increment,
`question` varchar(200) default NULL,
PRIMARY KEY (`id`),
FULLTEXT KEY `question_2` (`question`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;--
-- 导出表中的数据 `test`
--INSERT INTO `test` (`id`, `question`) VALUES
(1, 'In the following database comparison one Apple a day');为question字段建立了全文索引之后,使用语句select * from test where match(question) against ('database')返回的结果总是0行
原因是单词 “database” 出现在至少全文的50%的行中。 因此, 它被列入停止字。
你可以在插入几行别的 然后就会出来了