<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>fuzzy on seth-shi</title><link>https://sethix.com/tags/fuzzy/</link><description>Recent content in fuzzy on seth-shi</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Sun, 01 Apr 2018 21:56:48 +0800</lastBuildDate><atom:link href="https://sethix.com/tags/fuzzy/index.xml" rel="self" type="application/rss+xml"/><item><title>MySQL Reverse Fuzzy Lookup</title><link>https://sethix.com/posts/2018040121/</link><pubDate>Sun, 01 Apr 2018 21:56:48 +0800</pubDate><guid>https://sethix.com/posts/2018040121/</guid><description>When developing a WeChat auto-reply demo, I encountered this scenario:
Receive specific messages Reply with predefined content based on keywords stored in database Requires partial matching with fuzzy database queries For conventional fuzzy matching, everyone knows to use LIKE. Given this table structure:
id keyword reply 1 David This is David 2 KingDavid This is David If the input keyword is &amp;ldquo;David&amp;rdquo;, we need to find all records containing David. The SQL would be:</description></item></channel></rss>