![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
01/09/2011, 21:41
|
![Avatar de winderj90](http://static.forosdelweb.com/customavatars/avatar433549_1.gif) | | | Fecha de Ingreso: agosto-2011 Ubicación: Caracas - Venezuela
Mensajes: 8
Antigüedad: 13 años, 5 meses Puntos: 4 | |
Respuesta: Buscador óptimo la sentencia q haces esta bien estructurada pero el problema que veo esta en el modo como utilizas el signo "%", te explico, ese signo es como si fuera un completador, ejemplo:
VALORES EN LA TABLA A CONSULTAR: MARIA, MIRIAN, MARIANELA, MARIANGEL
CASO 1: SI BUSCAS '%RIA%' - RESULTADO = MARIA, MIRIAN, MARIANELA, MARIANGEL.
CASO 2: SI BUSCAS '%RIA' - RESULTADO = MARIA.
CASO 3 : SI BUSCAS 'MA%' - RESULTADO = MARIA, MARIANELA, MARIANGEL.
PARA TU CONSULTA TE RECOMIENDO EL CASO 3.
espero te sirva de algo... y si te sirve xfavor no te olvides del karma... |