MySQL REGEXP query - accent insensitive search

前端 未结 7 1933
清歌不尽
清歌不尽 2020-12-19 00:46

I\'m looking to query a database of wine names, many of which contain accents (but not in a uniform way, and so similar wines may be entered with or without accents)

7条回答
  •  佛祖请我去吃肉
    2020-12-19 01:18

    utf8_general_ci see no difference between accent/no accent when sorting. Maybe this true for searches as well. Also, change REGEXP to LIKE. REGEXP makes binary comparison.

提交回复
热议问题