ADD_MONTHS() 如果第二个参数是小数会怎么样?
来源:互联网 发布:疯狗雾化器做丝数据 编辑:程序博客网 时间:2024/04/18 22:49
Syntax
Purpose
ADD_MONTHS
returns the date date
plus integer
months. A month is defined by the session parameter NLS_CALENDAR
. The date argument can be a datetime value or any value that can be implicitly converted to DATE
. The integer
argument can be an integer or any value that can be implicitly converted to an integer. The return type is always DATE
, regardless of the data type of date
. If date
is the last day of the month or if the resulting month has fewer days than the day component of date
, then the result is the last day of the resulting month. Otherwise, the result has the same day component as date
.
Examples
The following example returns the month after the hire_date
in the sample table employees
:
SELECT TO_CHAR(ADD_MONTHS(hire_date, 1), 'DD-MON-YYYY') "Next month" FROM employees WHERE last_name = 'Baer';Next Month-----------07-JUL-2002
- ADD_MONTHS() 如果第二个参数是小数会怎么样?
- 如果小米开放购买会怎么样?
- mount如果没有指定-t会怎么样?
- 8年后会是怎么样?
- Linux逐渐壮大 是否会是第二个微软
- 没有 Android世界会是怎么样的
- 怎么样才能得到一个字条串的第一个字,如果是"中文"我就得到'中'字,如果是"china"我就得到'c'?
- 如果codefish架构在xml上会怎么样 ?
- 如果不写Order By子句,会怎么样
- 科教:如果人类突然消失了,地球会怎么样?
- 如果Java 失宠于Oracle,那么未来会怎么样?
- 如果Java 失宠于Oracle,那么未来会怎么样?
- 高德地图:如果没有自己的key,会怎么样?
- 如果self.成员变量不在__init__会怎么样呢?
- 如果在回调函数中释放对象,会怎么样?
- TCP三次握手过程,如果两次握手会怎么样?
- 如果的打开Word文档是Visible参数设为false你会得不到Selection实体
- JS 关于replace第二个参数是函数
- new与malloc的奇怪问题?
- java线程共享变量与静态变量
- 关于“绕坐标轴的旋转”和“鼠标控制物体的旋转”(二)
- 程序改错
- JAVA IO流(管道流)
- ADD_MONTHS() 如果第二个参数是小数会怎么样?
- 《剑指Offer》读书笔记---面试题6:重建二叉树
- 项目二填空1
- Launcher介绍总结
- 第六周项目2-1
- ZOJ 2433 Highways
- 第六周上机项目三
- 6-1 改错
- Collaborative filtering 学习总结