DROP TABLE IF EXISTS memos;
SET NAMES utf8;
CREATE TABLE memos (
id INT PRIMARY KEY AUTO_INCREMENT,
content TEXT,
FULLTEXT INDEX (content)
) DEFAULT CHARSET=utf8 COMMENT='engine "InnODB"';
INSERT INTO memos VALUES (NULL, "Today is good day.");
INSERT INTO memos VALUES (NULL, "Tomorrow will be good day.");
INSERT INTO memos VALUES (NULL, "Today is fine.");
INSERT INTO memos VALUES (NULL, "Tomorrow will be fine.");
INSERT INTO memos VALUES (NULL, "Yesterday was fine.");
SELECT * FROM memos
WHERE MATCH (content) AGAINST ("*DOR today good" IN BOOLEAN MODE);
id	content
1	Today is good day.
3	Today is fine.
2	Tomorrow will be good day.
DROP TABLE memos;
