当前位置:网站首页>Oracle/PLSQL: NumToDSInterval Function
Oracle/PLSQL: NumToDSInterval Function
2022-06-27 01:35:00 【yuanlnet】
In Oracle/PLSQL, the numtodsinterval function converts a number to an INTERVAL DAY TO SECOND literal.
Syntax
The syntax for the numtodsinterval function is:
numtodsinterval( number, expression )
number is the number to convert to an interval.
expression is the unit. It must be one of the following values: DAY, HOUR, MINUTE, or SECOND.
Applies To
- Oracle 11g, Oracle 10g, Oracle 9i, Oracle 8i
For Example
numtodsinterval(150, 'DAY') | would return '+000000150 00:00:00.000000000' |
numtodsinterval(1500, 'HOUR') | would return '+000000062 12:00:00.000000000' |
numtodsinterval(15000, 'MINUTE') | would return +000000010 10:00:00.000000000' |
numtodsinterval(150000, 'SECOND') | would return '+000000001 17:40:00.000000000' |
边栏推荐
- perl语言中 fork()、exec()、waitpid() 、 $? >> 8 组合
- 宁愿去996也不要待业在家啦!24岁,失业7个月,比上班更惨的,是没班可上
- WiFi-IoT 鸿蒙开发套件样例开发
- 二叉树oj题目
- 接口测试框架实战(一) | Requests 与接口请求构造
- Recursion will make strtok more attractive
- Visual introduction to Matplotlib and plotnine
- UVM中config_db机制的使用方法
- George Washington University: Hanhan Zhou | PAC: auxiliary value factor decomposition with counterfactual prediction in Multi-Agent Reinforcement Learning
- Reporting Classes中uvm_report_server的get_severity_count和get_server用法
猜你喜欢
Recursion will make strtok more attractive
markdown表格(合并)
理想L9产品力分析:售价45.98万,采用四缸发动机,续航1315公里
The listing of Fuyuan pharmaceutical is imminent: the net amount raised will reach 1.6 billion yuan, and hubaifan is the actual controller
Meituan: data management and pit avoidance strategy summarized after stepping on Thunder for several years
Due to the invalidation of the prospectus of bori technology, CICC has stopped providing guidance to it and abandoned the listing on the Hong Kong stock exchange?
ML:机器学习工程化之团队十大角色背景、职责、产出物划分之详细攻略
I encountered some problems when connecting to the database. How can I solve them?
接口测试框架实战(一) | Requests 与接口请求构造
getReader() has already been called for this request
随机推荐
理想L9产品力分析:售价45.98万,采用四缸发动机,续航1315公里
XSS attack notes (Part 1)
Amazon elasticache quickly builds a cache service cluster, which is fast
BS-GX-016基于SSM实现教材管理系统
Object access mechanism and others
Nokov motion capture system makes it possible for multi field cooperative UAV to build independently
Did your case really pass?
IIS 部署静态网站和 FTP 服务
[graduation season] role conversion
IIS deploy static web site and FTP service
Parameter transfer method between two pages
Oracle/PLSQL: Trim Function
Kept to implement redis autofailover (redisha) 11
Learn the most basic operation of discodiffusion
leetcode 1143. Longest common subsequence (medium)
JVM 的指针压缩
微博评论高性能高可用架构
为什么传递SPIF_SENDCHANGE标志SystemParametersInfo会挂起?
Keepalived 实现 Redis AutoFailover (RedisHA)12
Shell脚本系列篇(1) 入门