SELECT * FROM schema.table where TIME > to_date('2010-07-22 01:37:40','yyyy-mm-dd hh24:mi:ss')
或者
SELECT * FROM schema.table
where timestampdiff(2, char( timestamp(CREATED_TIME)- timestamp('2010-07-21 19:53:00.058'))) > 0 ;
1 = 秒的小数部分
2 = 秒
4 = 分
8 = 时
16 = 天
32 = 周
64 = 月
128 = 季度
256 = 年
或者
SELECT * FROM schema.table
where timestampdiff(2, char( timestamp(CREATED_TIME)- timestamp('2010-07-21 19:53:00.058'))) > 0 ;
1 = 秒的小数部分
2 = 秒
4 = 分
8 = 时
16 = 天
32 = 周
64 = 月
128 = 季度
256 = 年