La FAQ Comparar cadenas sin importar mayúsculas ni acentos tiene Pertenece a la categoría:
| Complementar la respuesta | |
| Volver al árbol de categorías |
| Por: MTI. Tomás Fernando Martínez | 09/7/03
|
| Por: luis | 06/4/05
|
| Por: Carlos Devia | 16/6/06
|
SELECT * FROM content WHERE REPLACE( REPLACE( REPLACE( REPLACE( REPLACE( REPLACE ( LOWER(title),'á','a'), 'é','e'),'í','i'),'ó','o'),'ú','u'),'ñ','n') = 'titulo';
Tambien se puede usar la funcion soundex http://dev.mysql.com/doc/refman/5.0/en/string-functions.html aunque la consulta anterior fue suficiente para mi.
--
Carlos Devia
http://www.imaginacolombia.com
Para ver más FAQ relacionadas accede a las categorías:
| Volver al árbol de categorías |