解决方案 »
- 如何在oracle中动态的创建一个表
- 如果访问1不断递增的数据量百万级,想检索存在另外1个MS SQLSERVER数据库中的某数据...
- 急、急、急,各位大虾,关于ORacle表只读权限问题
- 请教一个简单的sql,关于时间的
- 安装oracle9i需要几张盘?
- 我的一个9 i中运行正常的SQL语句到8i 中无法执行,出错,是怎么回事啊?
- 连oracle数据库的问题
- 请教个数据推送的问题
- SQL Server 分发服务器不能连接到 Oracle 发布服务器
- Toad For Oracle中文乱码
- 安装oracle10g错误,java virtual machine launcher
- 有关韩顺平oracle视频教程问题
UNION ALL
select t.*,t.rownum from tablename t where time >= '2011-12-09 09%' and time <= '2011-12-09 10%' and t.rownum<=10
UNION ALL
select t.*,t.rownum from tablename t where time >= '2011-12-09 11%' and time <= '2011-12-09 12%' and t.rownum<=10
select row_number() over (partition by trunc(time_data,'hh') order by time_data) rn,t.* from t
where sign(time_data-to_date('2009-12-09 07','yyyy-mm-dd hh24'))+sign(time_data-to_date('2009-12-09 08','yyyy-mm-dd hh24'))=0 or sign(time_data-to_date('2009-12-09 09','yyyy-mm-dd hh24'))+sign(time_data-to_date('2009-12-09 10','yyyy-mm-dd hh24'))=0 or ...)t2
where t2.rn <=10