Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/06/2010, 14:13
jurena
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Cáceres
Mensajes: 3.735
Antigüedad: 16 años, 1 mes
Puntos: 300
Respuesta: consulta sobre datetime

Código MySQL:
Ver original
  1. SELECT * FROM tutabla WHERE TIMESTAMPDIFF(HOUR,lacolumnadatetime,NOW()) < 48;
Atento, porque la hora de NOW() es la del servidor.