现在的位置: 首页 > 综合 > 正文

MySQL中的时间操作

2013年10月10日 ⁄ 综合 ⁄ 共 146字 ⁄ 字号 评论关闭

官网:http://dev.mysql.com/doc/refman/5.1/zh/functions.html#date-and-time-functions

 

秒单位计算:
select timediff('2010-04-19 14:17:00',now())+0;

 

结果为:50.000000

抱歉!评论已关闭.