Hello friends, could you help me? I have to make a query in mysql to look for states but they have to be as they are in the table;
Ciudad de México
Hidalgo
Jalisco
Estado de México
Michoacán de Ocampo
Nuevo León
Querétaro
San Luis Potosí
Sinaloa
Sonora
follow this query:
SELECT * FROM wp_pink_estados where nombre like '%nuevo leon%';
SELECT * FROM wp_pink_estados where nombre = 'nuevo leon';
shows me the record of Nuevo León
but should not show it because the accent is missing in ó
also try it this way:
SELECT * FROM wp_pink_estados where nombre = 'nuevo leon' COLLATE utf8_bin;
but it shows me these errors:
Palabra clave no reconocida. (near "COLLATE" at position 58)
Símbolo (token) inesperado. (near "utf8_bin" at position 66)
How could I do it to be the exact search? could you help me greetings