如何在 MySQL 中以分钟为单位计算经过的时间
表中有一个时间戳列/字段,格式类似于
2009-12-05 10:35:28,
现在我想获取从那时起经过的分钟时间(已经过去了多少分钟),该怎么做?
There is a time stamp column/field in a table, and the format is like
2009-12-05 10:35:28,
Now I want to get the time in terms of minutes(How many minutes have elapsed) elapsed from then on, how to do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
TIMEDIFF()
可用于获取日期/时间值之间的差异,以“HH:MM:SS.SSSSSS”格式表示。TIME_TO_SEC( )
可以将其转换为秒数。TIMEDIFF()
can be used to get a difference between date/time values, which is expressed in a "HH:MM:SS.SSSSSS" format.TIME_TO_SEC()
can convert this into a number of seconds.