Mysql timestamp query

Posted by Hulk on Stack Overflow See other posts from Stack Overflow or by Hulk
Published on 2010-05-07T05:52:53Z Indexed on 2010/05/07 5:58 UTC
Read the original article Hit count: 249

Filed under:
|

In mysql a result of a query is

say select timestamp from newbie;

   | 2010-03-12 14:50:46 | 
   | 2010-03-12 14:50:46 | 
   | 2010-03-12 14:50:51 | 
   | 2010-03-12 14:50:52 | 
   | 2010-03-12 14:50:54 | 
   | 2010-03-12 14:51:04 | 
   | 2010-03-12 14:51:07 | 
   | 2010-03-12 14:51:08 |

Is there a way to subquery the above and sum up the i.e, the final result should be the delta of each row in hh:mm:ss format

© Stack Overflow or respective owner

Related posts about mysql

Related posts about mysql-query