![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
27/01/2007, 11:48
|
![Avatar de mariobj](http://static.forosdelweb.com/customavatars/avatar61333_3.gif) | | | Fecha de Ingreso: abril-2004 Ubicación: Colombia
Mensajes: 10
Antigüedad: 20 años, 9 meses Puntos: 0 | |
Re: Resta de fechas ------------------------------------------------------------------------------------------
Qry diferencia de tiempos con MySQL
------------------------------------------------------------------------------------------
Select RV.TVisitante_id_TVisitante as ID_VISITANTE,
TimeDiff(fechahoraSali,fechahoraIngre) as Horas,
V.nomVisi, V.apePateVisi, V.apeMateVisi
FROM tregistrovisita RV, tVisitante V
where V.id_TVisitante=RV.TVisitante_id_TVisitante
and fechahoraSali <> 0 and (TimeDiff(fechahoraSali,fechahoraIngre)) <= '01:00:00'
puedes hacerlo directamente con las funciones propias del motor de MySQL las opciones de los otros chicos son igual de buenas.......ahi te va otra para tu coleccion
suerte................. |