select * from tablename where col_date>to_date('02:00:07','hh24:mi:ss') and col_date<to_date('07:30:35','hh24:mi:ss');
解决方案 »
- PLS-00103: 出现符号 ")"在需要下列之一时: <an identifier>
- oracle 存储过程的问题,高分期待高手!!!!!!1
- oracle 多行(行数不定)变一行
- oracle是否有这样的函数
- 如何在视图中查询TEMP和UNDO两个表空间的使用情况
- 在oracle10中如何用sql语句展开所有表空间、展开表空间中所有表和展开指定表的所有字段?
- 请问安装ORACLE8.16客户端时不成功?
- 怎样删除表中的重复数据,急!!
- 多个数据库的字符集问题
- ORACLE中PL-SQL写程序可以允许递归吗?
- 如何解决SQL SERVER下的临时表在Oracle下实现
- 请问一sql语句,涉及到多表,急急急,
ctime>=to_date('2002-7-1 02.00.00','yyyy-mm-dd hh24:mi:ss') and doctime<=to_date
('2002-7-1 07:30:35','yyyy-mm-dd hh24:mi:ss') group by to_char(doctime,'yyyy-mm-
dd hh24:mi:ss');
to_char(colname, 'hh24:mi:ss') <= '07:30:35' ;
_number(to_char(doctime,'hh24miss'))>=000000 and to_number(to_char(doctime,'hh24
miss'))<=213035 group by to_char(doctime,'yyyy-mm-dd hh24:mi:ss');TO_CHAR(DOCTIME,'YYYY-MM-DDHH24:MI:SS' SUM(ID)
-------------------------------------- ----------
2002-01-01 10:11:00 6
2002-05-01 10:12:00 1
2002-07-01 00:00:00 431
2002-08-02 00:00:00 94
2002-08-20 15:22:27 1
2002-08-22 00:00:00 93
2002-09-01 20:10:00 1
2002-09-01 20:20:00 28 rows selected.Elapsed: 00:00:00.70