当前位置:网站首页>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
边栏推荐
- Practice of openvswitch VLAN network
- Redis practice notes and source code analysis
- Prometheus alarm record persistence (historical alarm saving and Statistics)
- Kubernetes coredns FAQ reference
- 用反射与注解获取两个不同对象间的属性值差异
- [MySQL basics] startup options, system variables and status variables
- Thanos如何为不同租户配置不同的数据保留时长
- Introduction to the top 12 domestic databases in 2021
- 几款电纸书阅读器参数对比
- MySQL server standalone deployment manual
猜你喜欢

OVS and OVS + dpdk architecture analysis

冬季实战营 动手实战-MySQL数据库快速部署实践 领鼠标 云小宝

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

Problems related to Prometheus cortex using block storage

High performance gateway for interconnection between VPC and IDC based on dpdk

Typical application scenarios of alicloud log service SLS

Winter combat camp hands-on combat - MySQL database rapid deployment practice lead mouse cloud Xiaobao

你应该知道的 JVM 基础知识

Dolphinscheduler调度spark任务踩坑记录

Static interface method calls are not supported at language level ‘5‘ 异常解决
随机推荐
异常记录-10
Abnormal record-10
Build an OSS based image sharing website - polite feedback
基于EMR离线数据分析-反馈有礼
Introduction to DDoS attack / defense
异常记录-12
RAC环境报错ORA-00239: timeout waiting for control file enqueue排查
Redis 详解(基础+数据类型+事务+持久化+发布订阅+主从复制+哨兵+缓存穿透、击穿、雪崩)
Analysis of Rdam principle
19C中ASM network未自动启动的处理
VirtualBox如何修改“网络地址转换(NAT)”网络模式下分配给虚拟机的IP网段
异常记录-9
异常记录-20
10g数据库使用大内存主机时不能启动的问题
通过源码探究@ModelAndView如何实现数据与页面的转发
Prometheus的relabel_configs和metric_relabel_configs解释及用法示例
Apache Atlas 编译及安装记录
MySQL 【读写锁+表锁+行锁+MVCC】
JS function package foreach use return can not jump out of the outer function
Winter combat camp hands-on combat - cloud essential environment preparation, hands-on practical operation, quickly build lamp environment, lead mouse cloud Xiaobao backpack without shadow