当前位置:网站首页>oracle计算两日期相差多少秒,分钟,小时,天
oracle计算两日期相差多少秒,分钟,小时,天
2022-04-23 06:04:00 【旺财2】
--计算两个时间差相差多少秒
select (sysdate-to_date('2021/12/14 17:00:00','yyyy/mm/dd hh24:mi:ss'))*24*60*60 from dual
--计算两个时间差相差多少分
select (sysdate-to_date('2021/12/14 17:00:00','yyyy/mm/dd hh24:mi:ss'))*24*60 from dual
--计算两个时间差相差多少时
select (sysdate-to_date('2021/12/14 17:00:00','yyyy/mm/dd hh24:mi:ss'))*24 from dual
--计算两个时间差相差多少天
select sysdate-to_date('2021/12/14 17:00:00','yyyy/mm/dd hh24:mi:ss') from dual
版权声明
本文为[旺财2]所创,转载请带上原文链接,感谢
https://blog.csdn.net/wdyliuxingfeiyang/article/details/121952664
边栏推荐
猜你喜欢

Prometheus cortex Architecture Overview (horizontally scalable, highly available, multi tenant, long-term storage)

Dolphinscheduler配置Datax踩坑记录

10g数据库使用大内存主机时不能启动的问题

Dolphinscheduler调度spark任务踩坑记录

Analysis of Rdam principle

Passerelle haute performance pour l'interconnexion entre VPC et IDC basée sur dpdk

Redis practice notes and source code analysis

Introduction to RDMA network

Static interface method calls are not supported at language level ‘5‘ 异常解决

Dolphinscheduler调度sql任务建表时The query did not generate a result set异常解决
随机推荐
ES入门学习笔记
常用于融合去重的窗口函数row_number
Prometheus监控influxdb的方法及指标释义
Comparison between Prometheus thanos and cortex components
pycharm Install packages failed
oracle undo使用率高问题处理
How to use tiup to deploy a tidb V5 0 cluster
Chaos takes you to the chaos project quickly
Thanos Compactor组件使用
Abnormal record-20
OSS云存储管理实践(体验有礼)
Build a cloud blog based on ECS (send blessings on the cloud Xiaobao code and draw iphone13 for free)
Thanos如何为不同租户配置不同的数据保留时长
EMR Based offline data analysis - polite feedback
Winter combat camp hands-on combat - MySQL database rapid deployment practice lead mouse cloud Xiaobao
RAC环境报错ORA-00239: timeout waiting for control file enqueue排查
Construire un blog Cloud basé sur ECS (bénédiction sur le Code Cloud Xiaobao, explication détaillée de la tâche iphone13 gratuite)
Introduction to DDoS attack / defense
Exception record-6
关于我