Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

286
Visualizações
How to sql search for the letter 'å'

I'm trying to search through a MySQL table to find a specific column (as i have done many times before), but I have run into a problem, where I'm trying to search for the letter 'å', but it returns both a column with the letter 'å' and also a column with the letter 'a'.

for example.

I have a table named Categories that looks like this:

+----------+--------+
| Category | Answer |
+----------+--------+
|  cities  | abenra |
+----------+--------+
|  cities  | åbenrå |
+----------+--------+

When I then try to search through it like this SELECT * FROM Categories WHERE Category='cities' AND Answer='åbenrå' It returns the results:

+----------+--------+
| Category | Answer |
+----------+--------+
|  cities  | abenra |
+----------+--------+
|  cities  | åbenrå |
+----------+--------+

And what I was expecting and wanted was a result that looks like this:

+----------+--------+
| Category | Answer |
+----------+--------+
|  cities  | åbenrå |
+----------+--------+

So... How can I search for the letter 'å', without searching for the letter 'a' at the same time?

I really hope that you can help me! Thanks in regards.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

I guess you need to apply a conversion on your keyword for exact match

SELECT * FROM Categories 
WHERE Category='cities' 
AND Answer = CONVERT('åbenrå' USING binary)

DEMO

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda