导入hive的时间格式是:2016/8/23 00:00:00 无法直接to_date,只能截取具体子串substr在转换类型到int比较大小。 select count(*) from tmp_fjs_dba where substr(f4,1,9)='2016/8/23' and f28 like 'update%' and int(substr(f4,11,2))>12;