
22/10/2009, 14:11
|
 | Colaborador | | Fecha de Ingreso: febrero-2009 Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 16 años, 1 mes Puntos: 360 | |
Respuesta: select que devuelva el reg. del timestamp mas reciente
Código sql:
Ver originalSELECT id,nombre FROM tabla WHERE campo_timestamp = (SELECT MAX(campo_timestamp) FROM tabla WHERE campo_timestamp <=now());
así?
__________________ Without data, You are another person with an opinion.
W. Edwads Deming |