标签:c style class blog code java
1
2
3
4
5
6
7
8
9
10
11
12
13
14 |
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 ) |
1
2
3
4
5
6
7 |
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=> |
1
2
3
4
5
6 |
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) |
1
2
3
4
5 |
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) |
1
2
3
4
5 |
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
Vertica的date与timestamp数据类型,to_date()与to_timestamp()函数区别,布布扣,bubuko.com
Vertica的date与timestamp数据类型,to_date()与to_timestamp()函数区别
标签:c style class blog code java
原文地址:http://www.cnblogs.com/jyzhao/p/3766390.html