小编sun*_*uni的帖子

找到oracle sql中两个日期之间的经过时间

我需要找到格式为hh:mm:ss的时间之间的差异

select msglog.id,max(msglog.timestamp) enddate,
   min(msglog.timestamp) startdate,
   enddate - startdate
   from MESSAGELOG msglog
   group by id
Run Code Online (Sandbox Code Playgroud)

在上面的查询中,msglog.timestamp的类型为DATE.

如何在oracle中以正确的格式获取经过的时间或差异?

sql oracle date-arithmetic

9
推荐指数
2
解决办法
5万
查看次数

标签 统计

date-arithmetic ×1

oracle ×1

sql ×1