irnop=> select start_time from perf_rnc_w_3; start_time --------------------- 2014-05-26 01:00:00 2014-05-26 01:00:00 2014-05-26 01:00:00 2014-05-26 01:00:00 2014-05-26 01:00:00 2014-05-26 01:00:00 2014-05-26 01:00:00 2014-05-26 01:00:00 2014-05-26 01:00:00 2014-05-26 01:00:00 (10 rows)
irnop=> select count(*) from perf_rnc_w_3 where start_time >= to_date('2014-05-26 00:00:00','yyyy-MM-dd hh24:mi:ss') irnop-> and start_time <to_date('2014-05-26 23:00:00','yyyy-MM-dd hh24:mi:ss'); count ------- 0 (1 row) irnop=>
irnop=> select count(*) from perf_rnc_w_3 where start_time >= to_timestamp('2014-05-26 00:00:00','yyyy-MM-dd hh24:mi:ss') irnop-> and start_time <to_timestamp('2014-05-26 23:00:00','yyyy-MM-dd hh24:mi:ss'); count ------- 10 (1 row)
irnop=> select count(*) from perf_rnc_w_3 where start_time >= to_timestamp('2014-05-26 02:00:00','yyyy-MM-dd hh24:mi:ss'); count ------- 0 (1 row)
irnop=> select count(*) from perf_rnc_w_3 where start_time >= to_date('2014-05-26 02:00:00','yyyy-MM-dd hh24:mi:ss'); count ------- 10 (1 row)
DATE 8 Represents a month, day, and year TIMESTAMP 8 Represents a date and time without timezone