sql算法总结

1.过滤掉pcf_timestamp为0点到6点的记录,夜间记录不作分析  case when SUBSTRING(pcf_timestamp,5,1)="-" then pcf_timestamp  else FROM_UNIXTIME(CAST(pcf_timestamp/1000 AS BIGINT)) end  as pcf_timestamp,  hour(pcf_timestamp)
相关文章
相关标签/搜索