当前位置:网站首页>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
边栏推荐
- [ES6 quick start]
- 基於ECS搭建雲上博客(雲小寶碼上送祝福,免費抽iphone13任務詳解)
- Practice of openvswitch VLAN network
- 通过源码探究@ModelAndView如何实现数据与页面的转发
- Error alarm of Postgres master-slave replication delay monitoring
- Try catch cannot catch asynchronous errors
- Thanos Compactor组件使用
- Prometheus cortex Architecture Overview (horizontally scalable, highly available, multi tenant, long-term storage)
- Prometheus Cortex使用Block存储时的相关问题
- volatile 关键字的三大特点【数据可见性、指令禁止重排性、不保证操作原子性】
猜你喜欢

OVS and OVS + dpdk architecture analysis

ACFS文件系统创建扩大缩小等配置步骤

Basic concepts of database: OLTP / OLAP / HTAP, RPO / RTO, MPP

Practice of openvswitch VLAN network

Build a cloud blog based on ECS (send blessings on the cloud Xiaobao code and draw iphone13 for free)

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

Chaos takes you to the chaos project quickly

Using Prom label proxy to implement label based multi tenant reading of Prometheus thanos
![[ES6 quick start]](/img/9e/4c4be5907c1f7b3485c2f4178b9150.png)
[ES6 quick start]

Redis 详解(基础+数据类型+事务+持久化+发布订阅+主从复制+哨兵+缓存穿透、击穿、雪崩)
随机推荐
High performance gateway for interconnection between VPC and IDC based on dpdk
RAC环境报错ORA-00239: timeout waiting for control file enqueue排查
[Lombok quick start]
异常记录-14
Introduction to DDoS attack / defense
Relabel of Prometheus_ Configs and metric_ relabel_ Configs explanation and usage examples
实践使用PolarDB和ECS搭建门户网站
异常记录-12
Chaos vous emmène au projet chaos.
ORACLE环境遇到的ORA-600 [qkacon:FJswrwo]
常用于融合去重的窗口函数row_number
一个DG环境的ORA-16047: DGID mismatch between destination setting and target database问题排查及监听VNCR特性
19C环境ORA-01035登陆报错处理
PG SQL截取字符串到指定字符位置
Dolphinscheduler调度spark任务踩坑记录
Virtio and Vhost_ Net introduction
异常记录-22
阿里云日志服务sls的典型应用场景
Alertmanager重复/缺失告警现象探究及两个关键参数group_wait和group_interval的释义
Thanos Compact组件测试总结(处理历史数据)