mysql:将timediff()转换为秒 [英] mysql: convert timediff() to seconds

查看:681
本文介绍了mysql:将timediff()转换为秒的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个类似于以下内容的查询:

I have a query that looks something like the following:

select timediff(time_end, time_begin) from tbl

time_endtime_begin均为datetime

是否有一种简单的方法可以将时间转换为整数(秒)?

Is there a trivial way I can convert the time there to return an integer (seconds)?

推荐答案

查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆