Ver Mensaje Individual
  #5 (permalink)  
Antiguo 26/07/2013, 04:58
Avatar de gnzsoloyo
gnzsoloyo
Moderador criollo
 
Fecha de Ingreso: noviembre-2007
Ubicación: Actualmente en Buenos Aires (el enemigo ancestral)
Mensajes: 23.324
Antigüedad: 16 años, 5 meses
Puntos: 2658
Respuesta: Problema con where en esta consulta

Es una opción, creo, pero también se podría usar HAVING:

Código MySQL:
Ver original
  1.     id,
  2.     textoprin,
  3.     textosec,
  4.     (MATCH (textoprin) AGAINST ('$termino' IN BOOLEAN MODE) + MATCH (textoprin, textosec) AGAINST ('$termino' IN BOOLEAN MODE) ) puntuacion
  5. FROM buscadatos
  6. HAVING puntuacion > 4
  7. ORDER BY puntuacion DESC
__________________
¿A quién le enseñan sus aciertos?, si yo aprendo de mis errores constantemente...
"El problema es la interfase silla-teclado." (Gillermo Luque)