使用unix时间戳的时间,要注意。
from_unixtime(create_time)是将unix时间戳转化成年月日时分秒的格式。
from_unixtime(create_time) between '2017-06-01' and '2017-06-30',这样写2017年6月30号0:0:01-23:59:59的数据都不会被筛选出来。
使用unix时间戳的时间,要注意。
from_unixtime(create_time)是将unix时间戳转化成年月日时分秒的格式。
from_unixtime(create_time) between '2017-06-01' and '2017-06-30',这样写2017年6月30号0:0:01-23:59:59的数据都不会被筛选出来。