Ver Mensaje Individual
  #3 (permalink)  
Antiguo 28/04/2016, 14:19
Avatar de Libras
Libras
Colaborador
 
Fecha de Ingreso: agosto-2006
Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 17 años, 8 meses
Puntos: 774
Respuesta: Problema con consulta COUNT()

Algo asi:

Código MySQL:
Ver original
  1. SELECT COUNT(*) AS cantidad FROM foro_hilos
  2. WHERE subcategoria = '$subcategoria_id'
  3. ) as t1  limit cantidad
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me