ORACLE 时间间隔计算
来源:互联网 发布:巢湖学院网络选修课 编辑:程序博客网 时间:2024/06/12 01:52
.Oracle中两个Date相减,返回值单位为天。
如果想要秒可以:(date1-date2)*24*3600,时分同理。
如果想要月年等,这种情况还不知道怎么弄。
2.Oracle的mod()
最近有个应用:
有个表,很大,里面的数据是每秒一条,有个插入时间列。现在有3个条件:starttime,endtime,intervaltime
即:取得的数据要符合以下条件:
插入时间在starttime和endtime之间的,但不是每条数据都要,
需要做一个筛选,即时间间隔为intervaltime。
以下为时间间隔的解决方案:
select t.* from t where mod((inserttime-to_date('2009-9-3 8:59:58','yyyy-mm-dd hh24:mi:ss'))*24*3600,intervaltime )=0
http://fandayrockworld.iteye.com/blog/466327
- ORACLE 时间间隔计算
- oracle sql 时间间隔计算
- ORACLE 计算时间相减间隔
- c# 计算时间间隔
- 计算时间间隔函数
- c# 计算时间间隔
- Linux计算时间间隔
- 时间间隔计算
- 计算时间间隔
- C#时间间隔计算
- VB计算时间间隔
- C#时间间隔计算
- 计算时间间隔天数
- 计算时间间隔
- js计算时间间隔
- iOS 时间间隔计算
- PHP计算时间间隔
- ORACLE时间间隔函数
- Android RadioButton example
- Proverb Feeling -- Two heads are always better then one
- The 36th ACM/ICPC Asia Regional Beijing Site&&http://acm.hdu.edu.cn/showproblem.php?pid=4046
- 整理的腾讯笔试题
- 黑马程序员_java基础加强7_多线程加强
- ORACLE 时间间隔计算
- Jquery change
- 负载平衡
- 限制文本输入
- 【POI】POI简介
- Linux C-----位段类型
- ORACLE时间间隔函数
- CMake区分debug、release版本
- Codeforces Beta Round #4 (Div. 2 Only)