令和元年/ 2019-12-15 23:14
Memo
Random
User
Whois
Diff
A
Login
Mysql, あいまい, ひらがな、カタカナ、半角問わず検索できるようにする
ひらがな カタカナ 混在でも検索できるようにする。
select * from xxx where name collate utf8_unicode_ci like '%あ%';
utf8mb4の場合は
select * from xxx where name collate utf8mb4_unicode_cilike '%あ%';