Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/05/2005, 19:38
Avatar de nachopro
nachopro
 
Fecha de Ingreso: noviembre-2003
Ubicación: Haedo, Bs. As.
Mensajes: 290
Antigüedad: 21 años, 3 meses
Puntos: 2
Fechas y hora MySQL y PHP

Consulta breve:
tengo la consulta de MySQL
select id_age from agenda where age_act = 1 and age_fec < now()

el campo age_fec es del tipo DATETIME (incluye fecha y hora)
lo que en realidad necesito es una consulta así:

select id_age from agenda where age_act = 1 and "age_fec + 8horas" < now()

cómo puedo hacerlo?
gracias