oracle时间查询
来源:互联网 发布:自学php用什么书 编辑:程序博客网 时间:2024/05/21 13:55
select f.* from tab_regulation f
where '1987/8/8'<f.release_date < '2012/5/9'
and '1987/8/8'<f.apply_date < '2012/5/9'
--错误的
select f.* from tab_regulation f
where (
(f.release_date between to_date('1987-8-8','YYYY-MM-DD') and to_date('2012-5-9','YYYY-MM-DD'))
and
(f.apply_date between to_date('1987-8-8','YYYY-MM-DD') and to_date('2012-5-9','YYYY-MM-DD')))
--输出3
select f.* from tab_regulation f
where (
(f.release_date between to_date('1987-8-8 12:00:00','yyyy/mm/dd HH24:mi:ss') and to_date('2012-5-9 23:59:59','yyyy/mm/dd HH24:mi:ss'))
and
(f.apply_date between to_date('1987-8-8 12:00:00','yyyy/mm/dd HH24:mi:ss') and to_date('2012-5-9 23:59:59','yyyy/mm/dd HH24:mi:ss')))
--输出9
where '1987/8/8'<f.release_date < '2012/5/9'
and '1987/8/8'<f.apply_date < '2012/5/9'
--错误的
select f.* from tab_regulation f
where (
(f.release_date between to_date('1987-8-8','YYYY-MM-DD') and to_date('2012-5-9','YYYY-MM-DD'))
and
(f.apply_date between to_date('1987-8-8','YYYY-MM-DD') and to_date('2012-5-9','YYYY-MM-DD')))
--输出3
select f.* from tab_regulation f
where (
(f.release_date between to_date('1987-8-8 12:00:00','yyyy/mm/dd HH24:mi:ss') and to_date('2012-5-9 23:59:59','yyyy/mm/dd HH24:mi:ss'))
and
(f.apply_date between to_date('1987-8-8 12:00:00','yyyy/mm/dd HH24:mi:ss') and to_date('2012-5-9 23:59:59','yyyy/mm/dd HH24:mi:ss')))
--输出9
- oracle时间查询
- oracle sql 时间查询
- oracle特殊时间查询
- oracle查询时间
- oracle 时间查询
- oracle时间查询
- oracle sql 时间查询
- oracle之时间查询
- oracle 时间查询
- oracle 时间分段查询
- Oracle 查询时间
- oracle中的时间查询
- oracle查询-时间相关
- oracle通过时间查询
- oracle查询时间的判断
- oracle中 查询时间管理
- oracle时间类型的查询
- Oracle日期时间范围查询
- android获取窗口属性
- 百度测试二面
- 关于ORACLE数据泵
- [网页性能分析]利用Firfox,firbug,cssusage来分析CSS在网页中使用覆盖率
- SMPlayer - 视频播放利器
- oracle时间查询
- 用SQL删除重复记录的N种方法
- 千姿百态项目经理2——“缥缈”项目经理
- Android垃圾清理功能的初步
- 解决listview gridview 播放动画延迟 和卡顿的情况
- OracleWebEventProvider 未能加载
- css 在ie firefox下宽度不同的解决方法
- android开发时,使应用程序自动进行横竖屏切换
- delphi xe2 update4及crack下载