SQLite search without accents

Is there a way to make a LIKE query without an accent in SQLite? For example, this query:

SELECT * FROM users WHERE name LIKE "Andre%" 

will return:

  AndrΓ© the giant
 Andre Agassi
 etc.

I use Qt with QSqlDatabase if that matters.

+6
source share
1 answer

Configure collation using sqlite3_create_collation , and then use it like this:

 SELECT * FROM users WHERE name LIKE "Andre%" COLLATE NOACCENTS 
+3
source

All Articles