How could I perform a query by ignoring words with letters that contain accents? Word Example:
Olá, é, Lógica, Pão
I tried to use the collate noaccents
command as follows:
select c.* from Curso c
where c.Descricao like '%Logica%' collate noaccents;
However, I did not get any results, and only works if I remove the accent from the word Lógica
. So how could I ignore the accents?
Minimum example
Commands to create the illustration example.
Table :
create table Curso(Descricao TEXT);
Insert :
insert into Curso(Descricao) values ('Lógica de Programação');
See working in SQL Fiddle .