DROP TABLE IF EXISTS diaries;
SET NAMES utf8mb4;
CREATE TABLE diaries (
content varchar(256) COLLATE utf8mb4_uca1400_ai_cs,
FULLTEXT INDEX (content)
) DEFAULT CHARSET=utf8mb4;
INSERT INTO diaries VALUES ('やゆよ');
INSERT INTO diaries VALUES ('ゃゅょ');
INSERT INTO diaries VALUES ('ヤユヨ');
INSERT INTO diaries VALUES ('ャュョ');
INSERT INTO diaries VALUES ('ﾔﾕﾖ');
INSERT INTO diaries VALUES ('ｬｭｮ');
SELECT * FROM diaries
WHERE MATCH (content) AGAINST ('+ャュョ' IN BOOLEAN MODE);
content
ャュョ
DROP TABLE diaries;
