round日期函数 天数如何四舍五入
来源:互联网 发布:最新网络盗刷 编辑:程序博客网 时间:2024/04/29 11:02
--讲解:年份按**1-6月和7-12月**四舍五入到最近的 几几年1月1日select round(to_date('6-2月-13'),'year') from dual;select round(to_date('6-5月-13'),'year') from dual;select round(to_date('6-7月-13'),'year') from dual;--讲解:月份按**1-15日和16-30日**四舍五入到最近的 几月1日select round(to_date('15-2月-13'),'month') from dual;select round(to_date('16-2月-13'),'month') from dual;--讲解:天数按**周一-周三和周四到周日**四舍五入到最近的 周日--去掉注释不然会有错误测试:select round(to_date('3-2月-13'),'day') from dual;--周日select round(to_date('4-2月-13'),'day') from dual;--周一select round(to_date('5-2月-13'),'day') from dual;--周二select round(to_date('6-2月-13'),'day') from dual;--周三以上都是2月3日 以下都是2月10日select round(to_date('7-2月-13'),'day') from dual;--周四select round(to_date('8-2月-13'),'day') from dual;--周五select round(to_date('9-2月-13'),'day') from dual;--周六select round(to_date('10-2月-13'),'day') from dual;--周日
0 0
- round日期函数 天数如何四舍五入
- Oracle中的ROUND( )日期四舍五入函数
- 如何使用 Oracle Round 函数 (四舍五入)
- Math.Round 四舍五入函数
- PHP 四舍五入函数 round()
- mysql 四舍五入round函数
- Oracle round 函数(四舍五入)
- MYSQL如何计算两个日期间隔天数及日期函数
- SQL的四舍五入ROUND函数
- 用round 函数 实现 四舍五入
- 用round 函数 实现 四舍五入
- oracle round、trunc 四舍五入函数
- Excel2010使用Round函数四舍五入
- SQL的四舍五入ROUND函数
- oracle round()函数 ----四舍五入函数
- 在SQLserver中如何获得两个日期相减的天数及日期函数
- java Math.round() Java中的四舍五入函数
- Math.Round函数四舍五入的问题
- 预计今年年底全球公共WiFi热点总量将达4800万
- 第十二周 项目六(4)10000以内的所有可逆素数
- 鱼眼矫正的坐标变换
- BlockingQueue
- 整数划分
- round日期函数 天数如何四舍五入
- 关于socket can方面资料收藏
- angularjs笔记
- 产品经理选择axure的十个理由,你赞同吗
- div的提示框显示(转载)
- PHP 5.4 内置Web服务器
- UVA(558 BF + 判断负环)
- leetcode c++ jump game 2
- 30个php操作redis常用方法代码例子