oracle中查找某个时间段内的数据
2015-06-26 14:04
656 查看
例子:
1)select * from tableName t where start_times > to_date('2015/6/26 10:00:00','yyyy/mm/dd hh24:mi:ss');
2)select * from tableName t where start_times < to_date('2015/6/26 10:00:00','yyyy/mm/dd hh24:mi:ss');
3)select * from tableName t where start_times between to_date('2015/6/26 10:00:00','yyyy/mm/dd hh24:mi:ss') and to_date('2015/6/26 11:00:00','yyyy/mm/dd hh24:mi:ss');
1)select * from tableName t where start_times > to_date('2015/6/26 10:00:00','yyyy/mm/dd hh24:mi:ss');
2)select * from tableName t where start_times < to_date('2015/6/26 10:00:00','yyyy/mm/dd hh24:mi:ss');
3)select * from tableName t where start_times between to_date('2015/6/26 10:00:00','yyyy/mm/dd hh24:mi:ss') and to_date('2015/6/26 11:00:00','yyyy/mm/dd hh24:mi:ss');
相关文章推荐
- 基于 Red Hat 的发行版 Oracle Linux 正式发布Oracle Linux 7.1
- SQL中的三值逻辑
- SQL Server 作业批量停止
- 结束SQL阻塞的进程
- 动态生成SQL Server视图作业
- Oracle Containers for J2EE远程安全漏洞(CVE-2014-0413)
- Oracle 10g R2不能使用EM的问题
- SQL Server 语句操纵数据库
- 表空间操作
- PreparedStatement中in子句的处理
- SQL(结构化查询语句)
- VMware下RedHat4.8_64位安装Oracle 10g RAC--简略脚本
- oracle sql日期比较
- 基于 Red Hat 的发行版 Oracle Linux 正式发布Oracle Linux 7.1
- OS block size和Oracle block size,查找OS Blocksize的方法
- linux快速部署mysql服务器