我是 MySQL 的新手。我正在尝试表搜索,目前我正在使用 like 关键字...。但我喜欢实现全文搜索方法..
CREATE TABLE art(
id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
body TEXT,
FULLTEXT (body)
) ENGINE=MyISAM
INSERT INTO `art` (`id` , `body`) VALUES
(1, 'php coding and soluton'),
(2, 'java coding and soluton'),
(3, 'DBMS stands for DataBase ...'),
(4, 'After you went through a ...'),
(5, 'In this tutorial we will show ...'),
(6, '1. Never run mysqld as root. 2. ...'),
(7, 'In the following database comparison ...'),
(8, 'When configured properly, MySQL ...');
SELECT * FROM art
WHERE MATCH (body) AGAINST ('database');
我正在使用此代码来实现 Mysqlfulltext serach 。但我无法得到答案。我只在 Body 上使用全文搜索 .. 是否可以使用请帮助我任何人