Created
April 9, 2023 02:14
-
-
Save salvadorgascon/770bfef5e39c935478c38cec7b706d9b to your computer and use it in GitHub Desktop.
Query ignoring accents and ignore case on PostgreSQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT Clientes.* | |
FROM Clientes | |
WHERE UNACCENT(UPPER(Nombre)) LIKE UPPER('%camion%') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE EXTENSION IF NOT EXISTS unaccent WITH SCHEMA public; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment