Mysql Timediff function is not working for me for long date.. Actually i need to get the time difference between date_time field to now()
so i used this query
SELECT `date_time`,now(),timediff(`date_time`,now()) FROM `table_datetime`
I have two rows
date_time
2011-04-25 17:22:41
2011-06-14 17:22:52
my result is

Here first row result is changing but not for second one this one always return
838:59:59
constantly … Why its not giving correct result
Thanks for help !
instead of
TIMEDIFFuseDATEDIFFwithEXTRACTThanks @rekaszeru for useful link
Alternate Solution ( get the difference in Seconds )
Reference
EXTRACT
TIMESTAMPDIFF