oracle 中的trunc()函数及加一个月,一天,一小时,一分钟,一秒钟方法
返回处理后的数据,不同于round()(对数值进行四舍五入处理),该函数不对指定小数前或后的数值部分进行舍入处理。
语法:trunc(number[,decimals])
其中,number为待做处理的数值,decimals为需要保留小数点后面的位数,即精度,默认值为0,此时将截去所有的小数部分。
数值处理:
select trunc(123.45) as a,trunc(123.456,2) as b, trunc(123.45,-1) as c from dual ;
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAh4AAAB6CAIAAAB/W814AAANVUlEQVR4nO2dva7jNhpA2c4b7GOmSR21A0w7/e2DVKmDuaWqLLbZIlhX26QUfB9AKWTr0vwn9VGiqHNAXHhkiRQ/ijwiZXvU12/f5yb5+u37fxrg4+Pj67fvX799//j4aOFMJgCA5lEtq+XfDaCrpYUzOfqCAQCI07RaSCQSiXTG1K5aAADgpKAWAAAQBrUAAIAwL2r59bffSSQSiUTamEy1HKE3AADoCtQCHaKUUkodfRYA1+XqalFq6L7E/Tm8jolqOfw8D+EstT7LeYKTTWpRw7Ak6bPaCf3aNQYipR4psMWfrXmIldVZI5bCIVG1/ulQi7OsGm3R8pzpqGs+7dxCZ3sI9Ya4rItEPRE/jXoIzFrK4p5yVFVpGX3M6FHGa9+7rmxfullK6TvTX1Ttt+x+GCirkl0KD+yudZLPzX1srz1lzr9IUIvYUbt1s9nfkQIDmSvPlx0urpZ5r6i6tqAWV+aHXvMJp+fc2GdPma+slnUyqIfYnh7aDeDcR9+YMs10HpLyIlr6Y6O/m/k2Ruf4djfzrQxEO4wz7PGgxWbNXUbVtcUbh33aomwFo8vWcR0y6Cl2PhV7SqCBjHzsF3bpiUUbpdsv9H2Mo8LZzoea2CCiFnNvLYi+3ex9Uo5yn5yrt+SW5Sx9TuhmvnaMbk/rsRGt+l6EjnqWEbWL8c+zR9W1mOMeNQoGr6ptEShu/efZWyed1lonty3sv4mlp7yInm1rRBbEUu4IfLdL4cYuU4tvh/Te9XlssJtFVwB8b/mnKaHSHVklzBddJxC/We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vR5/CwRCBShBYODt5C2K+J7SLWv4vBGo5C0SgEgQWzk62Wpx2QS3XhAhUgsDC2SlRi22XMrUopQ5Xi1HWWsHAlpXW+v+WuviyUq8Yu7UWgabo6dICyKVQLYZdCtSyZHKsWuyubrz2vbvQVP/fWBdfVuE9m4pAU/R0aQEUUK4W3S59zFrCvb39/r+lLsZbqGU7qAWuzCa1rHbpQy2+jWdZtdhSF2N/XS2s25QRbg7UAn3DrCX1jr79/r+lLsb2FEvN7UWgKcLNgVqgbw571tKmWqIrRTqt9f8tddHf8k1T2o9AU4SbA7VA3/AJsdRnEu33/y118e18rgg0RU+XFkAuh32vZbXUgWoxbs+N5T7nPjpN9f+yuvhCfcYINEVPlxZAAXwbvxz6PxGoBIGFsyP5y8eo5WoQgUoQWDg7Lf7ysVLqHeDaHDcmAAgg88vHAAAAK6gFAACEQS0AACAMagEAAGFQCwAACPMP130x/Xhl6osAAAAASUVORK5CYII=" alt="" />
从以上例子可以看出,第二个参数可为负值,表示为截取小数点左边指定位数后面的部分,即皆为0位,与为整数相似,为1时取十分位,为-1则取到十位,以此类推。当然有一种情况是这样的:trunc(123.45,-5),可以测返回:
select trunc(123.4,-5) from dual;
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM8AAABjCAIAAACzPcOdAAAGGklEQVR4nO2dTbLbKhBGWTpL8Tz1RlmAPWQTGr0NUN6AMsCWMTRNgxAC+TulihUEbdQ+t/Vj5Uat67qu65///q4/hlL67CkQjDmrVij3Umqb0totB0ypB/6HqlSw6bUwLemwRXP4Wsi5ccMP+wiUUkq8J+qNqLN7qattdbsqGXWox4FqgVjBemorFbbYNskM6Q4H/5zLbSvq/+u2rWmf4gSyfmQ6pIYkNv2SbVuV9vcqrtvxPpN9/EZJ/SeHSFay7/5qTNuWaszWraxtSml/2WKSkXnbgp2NV/xu5BB2Rz5HxnjF7xOM4sO+urmX2LZ4D+NNKfmYFTI4MS1KmtL3It99FdiWSl22vbAiJCOX1rZsfuI/E9NQF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SDsO30/58Gy1UX2rYVgAPYa5vWuuFs2ka7KtZaeeehUsrZJjkSu52pPIwfHO3CCLN0u91gW6doQsb8Lp+flTBLsE0aLX64g3qELlyPO5MDN/yWYGs8RP6kSZHBqcdYmCDCnMM2abRNFOvlvWKF98lfT/XMxgkoffaJ6ZzaJMw5bCuLlvKDXyFNjeHlS3WTxIRtJPPZlipCbW3jJ8DsguRNg+Om8EDvI8w5bCuLRgqRtc1GzpFkbUuNzbYX1baiKTmEOYdtZdHqjqS2hW0VBzjLFioJsI1jWNusp102WvxXvs5lTao+b4NtHIfaFhSJ+FzHbyf7kHF8Un3UN6k4zCG16KhKzpAZKMw5bOsXTUj1Odah8flRwizBtn7RRuAglYVZmsY2DeZnGtuEtN0ZFf36QbCTx+Nx9hQ+SI+kqSOCs+3/RsC25sxqGykcbBuciW2LhauzTSkF2xqyfTrxprltC4SrsM0FgW2t8JMWJ3B623zhUNtO5/q2bcLBttO5vm2obeNwcdt2nrfBtrZc2Tb7DWw7ncvaZiOqr0lJ4WBbHRe8AxKrVl3bGBFPy8RFmdK2FLBtcOaw7YQnFrRWgv8uDZRyqmBf4LfOgH7ANtAP2Ab6AdtAP/4BGqxo1gn4Z8IAAAAASUVORK5CYII=" alt="" />
日期处理:此时函数返回指定元素格式截去一部分日期值。
语法:trunc(date[,fmt])
Date 为必要参数,是输入的一个日期。Fmt参数可以忽略,是日期格式,用以指定的元素格式来截去输入的日期值,默认为0,此时截去最近的日期。
用法及举例可参考如下:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAwMAAADRCAIAAAAfXvnNAAAgAElEQVR4nO2dvbLsrLGGlX53cC7TifO5lJ27HDl2fTucyKED11nRSRxOrRvQCeZnMdA0DYIRP89TqlUaBA0tNKN3NUhsOwAAAMCqbGc3AAAAAOA0UEIAAACwLg8l9Le//4ONjY2NjY2NbbXtRwmdp8YAAAAAzgElBFOzMf4LAAAa6yqhbbuc3YQu2pDBS1Vs29vmZohtukHxUNKOpaJ7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5ErkJggg==" alt="" />
附:
在当前日期加一个月,加一天,加一小时,加一分钟,加一秒的方法:
oracle中有一个add_mouth()函数,可直接加月份:
select sysdate,add_months(sysdate ,1) from dual;
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXYAAACFCAIAAADATUQxAAALl0lEQVR4nO2dQbarqhJAHXqGcvpvvdYbwD1NJ5HW79ymKxPIb5gYAgUUSCnq3ivrfg9BQAq3pUneH57P5/P5/Off/54AAK0Z5v9BMQBgAYoBAENQDAAYgmIAwBAUAwCGoBgAMATFAIAhKAYADEExAGAIigEAQ1AMABiCYgDAEBQDAIagmPMzDLe9h1DJcUcOC5WKGW63+WUwpFVsOaphGIZhSJds0GmufoPZ2GxWwyNTjt9uQRZN+PCm+TCOy6ospi6i1os13X7b3sPFZLG8QpGpd2x2sBvM6jAIinkqjsJ8RRXGFMW4oJh1faEYxbsFvaCY0yErZkk73eCFiWgYWrGOW6hJaL3ew+30CBNjFnvXJNixeyK3MJ0kDw6xlsU6RSVB48Kx9zOrIRWKEY8rNkhxl+R4PrMabrh1vL3SzV6KqGL8ek54YtXCOpq9hDEpei+qUzRmYTyOAvQbYiPuv/p2YitY0Wlq2ved1ciAxcKyBZO4Fi728f6NDKYy7ijGJXqjFLtSpRdWmLMIXSqWndhReiXFln7pmOXxfOcIvSlmGWHQaX7GdpzVkFaKiVVorphnsDaeQbwuTlQxr7dLZJEIbbYw3ftTujTFRlh3vU0No/ssJl4zM/87zqrI4RRDFpNFVkwsZ1lK3ArZ65uYuKZCW5UxiYWJarERyqdl8LBDU+K14P3r7uW14JW7f4p1El0vh7PvrEoTEohgED5U0vhFXJliNfeos4p5lsfdIz3yi5DJYvqh+sJY3FFuTR+OxBFtNqtC14p5Pl8sLsgBFFNxS1/fV6M13f8FbctZFXrHHZfhAIoBgOOCYgDAEBQDAIagGAAwBMUAgCEoBgAMQTEAYAiKAQBDUAwAGIJiAMAQFAMAhqAYADAExQCAISgGAAxBMQBgCIoBAENQDAAYgmI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GkmNi7Yp3SsPaznFBMHlPFiNcK71qqLPG2E3uhGE8xiYlKTHuIKJdYO9k66fGI/YZ1skcRK/G2E3sNcdeIY05MYGn4OqFfxUBzlHPLV+/2GkO6Tmn4OgHFXAjl3DZRjCa/uA5NDr80fJ0QVcwNrsq8RuGgHEYxStoezBD5f9WEjfn9/d17CFBPV+HT3ijFMr1ZMf9rBIrphK7WKJTSVfgKFCNa5liK0bR/bs1l7+TnatZrlEDU0Un4iihTTGiZOsUMw6BRzNJpouQZrEWxjlhNmI5kX7GWsx1l9/LqeA9KG+5Vt0btAlFX5wSBqOMSihm+LVOhmLmRrGLCbfHdcPGFu4sNirEXd0/0LraQPopEp2JfiY4q9qpYo3aBSEzO6QNRx1UU41rGLovRry39mkv86RVWr+yKcerXaN1eLtmAztUqFJPYjh2FqWIqxrllIOqoCN/uVCpmOSrTG6XXEHMr0tteEBspKok1Lk5lrB3lXs/vI83uJa7s7F5iTJWXQaNAhIVXCEQda8K3F/1mMa/xrb4Qhdt1JenW2u5VWq45lpnpmyF4uDZXC9cogWgbiDqqw7cjNYpxy60f98b+LNquu3Iqe0+3rNyr4q0migmZq4WPezVdVwSiouQcgaijLnz7UqwY75C2eRYTllgrRt97umXNXnV9hXU0e1WsUbtArFf/cQNRx/kVEx5S9SdKomW82Lh4hWG1dIl/2Lk6yt6FCVWM5xmsQmVfsUGm+3KpU4xRIGIta+ocPRB1nFwx4iH1/9U7TZsW/R4aizVKIDbjkIqJ0b9ioIKu1iiU0lX4oorZ4Seit9swDL8AsJpdrfJFKosBAFgJigEAQ1AMABiCYgDAEBQDAIb8H7/E6gHkxG/KAAAAAElFTkSuQmCC" alt="" />
加一天,加一小时,加一分钟,加一秒:
select
sysdate +1 加一天 ,
sysdate+1/24 加1小时,
sysdate+1/(24*60) as 加1分钟,
sysdate+1/(24*60*60) as 加1秒钟
from dual
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAkgAAACrCAIAAAASM/T9AAASuElEQVR4nO2dvZ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jhxhjP2G7wVWZWg8cDoboBAzRCW08Ng2lxWQq4VzD3KCaz8/Po6sA44ghugFDdEKpITJDkSlfeBK2/zUCYesEHuNOwBCdgCE6ob2wRbXtXMKmyd+2uGZHsadoWz/GGAJDdAKG6ISNDKEStlDb6oTNOacRtrlQIWQM7B2NE40WuQtiWamcswVlU2muS5MqW1Zd68EQ2YIwhEATQ2yUCkOU3tJUDTU5NzdEFq2wuXdtqxC2KZOssIW/o2dDA6fuYNgOInchllwoPZqDfBVCoWP6ujSpNGVVtB4MgSGqL1Ooj5CqriwMIVymUB8hVasnQpOwwhAaCoTNLbRtO49Nbz+9XYX/eoHVrWdlPeU4+tyyj3HKoFO0isdYeYHhKQyBIYQc6q4UQ2QL2vmJCKvqUWEIDWXCNpe36VBk9NZkf89EMykK0ZQuJPGqJCSZo2XroywuFTlqU+VrUSeGGEtuafZ3NBWGSIWkMk9dZjSf6iciVSVNcanIGKLCEBVPhFMLW4UhpDoUCdscvrWwKVtM0e/qkFTTrKhzaVpNfE348I4LPppO0cLW048h9LeoznylpchxMER1qvXxNeEYIpuqYXylsBUZIlMNvbAtw7eePJK9U5rf0bspl5VKlT2lrFtp2tJqKB/jkCla+KlcU8l9DFEtbMpUpaXIETCEsm7ZtGtUTTiFIbKpKuJH6zwTTVJniHy15/SdzIqse0lp1XrkJG1bT11r09+fJRWtpzdDVN+irPkwhP6/QilyznVPRJ2qYYiKeq6Jnz0rnKowhIb91rHNGpkVtlDkQ81XhoT3V46jLD1yHxX1EYrTp6qrYd1jjCEwxLGGiJY+YojzPBHLU9HqVRhCg9mdRzR5blHuqdliOSqGqABDdAKG6ITGwpaif2GDCthAqBMwRCdgiE5YK2wHbN18uznnPgEAABKsEjYAAIBTg7ABAIAp/g/TFY+uo78eFwAAAABJRU5ErkJggg==" alt="" />
---------
本系列为最近一段时间学习oracle的学习笔记,记录于此作为自身回顾,其中有的来的网络,有的来的书籍,但时间已久,记不清哪些是引用,如是转载但没标注出,特意致歉。
oracle 中的trunc()函数及加一个月,一天,一小时,一分钟,一秒钟方法的更多相关文章
- oracle中的常用函数、字符串函数、数值类型函数、日期函数,聚合函数。
一.字符串的常用函数. --一.oracle 字符串常用函数 --1. concat 连接字符串的函数,只能连接[两个]字符串. 字符写在括号中,并用逗号隔开! --2."||"符 ...
- Oracle中的substr()函数 详解及应用
注:本文来源于<Oracle中的substr()函数 详解及应用> 1)substr函数格式 (俗称:字符截取函数) 格式1: substr(string string, int a, ...
- Oracle中的单行函数
Oracle中的单行函数 1 字符函数 UPPER()--将字符串转换为大写 SELECT UPPER('abc') FROM dual; LOWER()-将字符串转换为小写 SELECT LOWER ...
- Oracle中 Instr 这个函数
http://www.jb51.net/article/42369.htm sql :charindex('字符串',字段)>0 charindex('administrator',MUserI ...
- oracle中的trim()函数详解
1.先看一下Oracle TRIM函数的完整语法描述 TRIM([ { { LEADING | TRAILING | BOTH }[ trim_character ]| trim_character} ...
- oracle中的greatest 函数和 least函数
oracle中的greatest 函数和 least函数 原文地址:https://blog.csdn.net/sinat_32023305/article/details/78778596 g ...
- 问题:oracle nvl;结果:Oracle中的NVL函数
Oracle中的NVL函数 (2012-11-30 13:21:43) 转载▼ 标签: nvl oracle 分类: Oracle Oracle中函数以前介绍的字符串处理,日期函数,数学函数,以及转换 ...
- SQL中Charindex和Oracle中对应的函数Instr
转:http://blog.csdn.net/zhuyu19911016520/article/details/8568640 sql :charindex('字符串',字段)>0 charin ...
- 创建类似于Oracle中decode的函数
-- 创建类似于Oracle中decode的函数create or replace function decode(variadic p_decode_list text[])returns text ...
随机推荐
- 【poj2114】 Boatherds
http://poj.org/problem?id=2114 (题目链接) 题意 给出一棵树,问是否存在两点间的距离为K. Solution 点分治嘛,跟poj1741差不多.. 然而为什么我调了一个 ...
- CloudStack4.4安装 ubuntu14.04
CloudStack 项目的活跃程度仅次于 OpenStack. 和大多数云计算.集群软件一样,CloudStack 也是控制节点+计算节点这种架构,控制节点(cloudstack-managemen ...
- Android数据存储-通过SharedPreferences实现记住密码的操作
在Android中登陆中,为了实现用户的方便,往往需要根据用户的需要进行记住密码的操作,所以,在Android数据存储中SharedPreferences恰恰可以实现这一点 下面,小编将带领大家通过S ...
- iOS 解决一个因三方静态库冲突产生的duplicate symbol的问题
最近在开发项目时编译三方.a时出现了冲突,原因是存在duplicate symbol. <1>模拟器编译时,应用的即时通讯模块采用的三方库(容联云),和视频监控模块采用的三方库(海康威视) ...
- PHP之:析构函数
如何正确理解PHP析构函数 参考文献:http://developer.51cto.com/art/200912/167023.htm 初次学习PHP语言的朋友们可能对PHP析构函数有些不太了解.我们 ...
- CentOS下vsftp安装、配置、卸载(转载)
看过多个教程,只有这个能完整成功配置: http://www.centoscn.com/image-text/config/2015/0122/4543.html
- Visual Studio 当前上下文中不存在名称“ConfigurationManager”
Visual Studio调试出现错误:当前上下文中不存在名称“ConfigurationManager” 解决方法: 1.System.Configuration引用这个dll参考:http://k ...
- CSS3-实现单选框radio的小动画
在微信上看到一个教程文,觉得制作的小动画还是很有意思的,自己也试验了一下.一开始动画怎么都不执行(我用的HB),因为内置浏览器对css3的不兼容.加上各种浏览器前缀后就好了.但是旋转那个效果,在HB里 ...
- Yocto开发笔记之《网卡配置》(QQ交流群:519230208)
QQ群:519230208,为避免广告骚扰,申请时请注明 “开发者” 字样 ============================================== # ifconfig -a # ...
- MYSQL 常用函数(数学、字符串、日期时间、系统信息、加密)
一.数学函数 数学函数主要用于处理数字,包括整型.浮点数等. ABS(x) 返回x的绝对值 SELECT ABS(-1) -- 返回1 CEIL(x),CEILING(x) 返回大于或等于x的最小整数 ...