Ver Mensaje Individual
  #4 (permalink)  
Antiguo 19/07/2010, 13:31
Avatar de huesos52
huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 15 años, 3 meses
Puntos: 360
Respuesta: Comparando fechas

Código MySQL:
Ver original
  1. select *from tabla where fecha < now() order by fecha desc limit 2;

asi serían los ultimos 2
__________________
Without data, You are another person with an opinion.
W. Edwads Deming