I need to search for cities.
In the database is registered for example, São Paulo
, Viamão
, Curitiba
, but if the user tries to search the city of São Paulo
for example, typing Sao Paulo
(without accent), nothing is found because in bank is registered with accentuation.
I've tried the following:
select Municipio.descricao
from municipios as Municipio
where Municipio.descricao ilike '%Sao Paulo%'
Does anyone know how to do this search by ignoring the accent on the bank?