select * from tbname where coldate between to_date('2003-09-11 07','yyyy-mm-dd hh24') and to_date('2003-09-11 17','yyyy-mm-dd hh24')
解决方案 »
- select * from dept ,dept e各位老大帮帮忙吧
- oracle的日志组为什么最少是两个或者是建议多个
- 那位兄弟在用legato的networker备份啊,急(100)?
- 请教一个SQL查询语句的问题~~~~~~~~~~~~!!
- 客户端可以连接(sqlplus),但命令行不行(sqlplus system/manager@test)
- 急,安装时出现的问题。
- 监听服务(OracleOraHome81TNSListener)在服务栏里一刷新就没有了,连停止、已启动或都已禁用这个几个字都没有了。
- 使用"Provider=OraOLEDB.Oracle;Data Source=R2D2;User ID=foo; Password=bar"连接为何失败?需要安装什么呢?在线等待。
- oracle816的速度突然变慢,是什么原因?
- 请问developer/2000,谢谢
- 立刻给分:请问Oracle9i的表最多可以有多少列?
- asp连接oracle的问题
你这样用会影响执行效率的,因为对每条记录的thedate都需要用to_char函数运算,这样会更好:
select * from table1 where thedate = to_date('2003-9-23','yyyy/mm/dd');
select * from table1 where thedate between to_date('2003-09-11 07:00:00','yyyy-mm-dd hh24:mi:ss') and to_date('2003-09-11 17:00:00','yyyy-mm-dd hh24:mi:ss');