0

i have to compare two strings in a query like following:

SELECT *
FROM MY_TABLE
WHERE column LIKE '%keyword%';

But i want to compare unaccented values of both column and keyword. Is there an unaccent() function or other way to achieve this in MySQL?

karim
  • 149
  • 1
  • 3
  • 15

1 Answers1

2

AFAIK, No there is no unaccent() function present in MySQL. To ignore the accent you will have to set the proper collation for the column you are trying to compare. Example: How to remove accents in MySQL?

Community
  • 1
  • 1
Rahul
  • 76,197
  • 13
  • 71
  • 125