Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/11/2010, 21:19
Avatar de huesos52
huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 15 años, 2 meses
Puntos: 360
Respuesta: consultar los registros de los ultimos 5 minutos

Código MySQL:
Ver original
  1. SELECT *FROM tabla WHERE
  2. campo_timestamp BETWEEN
  3. DATE_SUB(campo_timestamp INTERVAL 5 MINUTE)  
  4. NOW();

Prueba esto

saluds
__________________
Without data, You are another person with an opinion.
W. Edwads Deming