I am trying to get the records in which "text" column contains a string strats from that letter or any word in that string starts from that letter.And it should work independent of accents. For example:
There are 4 records:
cafe
astocafe
bad café
good cafes
When the user types cafe
it should display :
cafe
bad café
good cafes
I am trying to use this query:
SELECT id, texto FROM table WHERE CONVERT( `text` USING utf8 ) REGEXP '[[:<:]]cafe'
But its showing only:
cafe
good cafes
its not matching accents.