MYSQL search for right words | fixing spelling errors

后端 未结 3 704
暖寄归人
暖寄归人 2020-12-06 08:54

I have a table dictionary which contains a list of words Like:

   ID|word
   ---------
    1|hello
    2|google
    3|similar
    ...

3条回答
  •  抹茶落季
    2020-12-06 09:01

    There is a function that does roughly want you want, but it's intensive and will slow queries down. You might be able to use in your circumstances, I have used it before. It's called Levenshtein. You can get it here How to add levenshtein function in mysql?

提交回复
热议问题