sql查询值按分钟平均,小时平均,天平均

 按分钟平均 select id,ROUND(AVG(value),2) as avg, date_format(time,'%Y-%m-%d %H:%i') as time from " + tablename + " where id in (:indexIds) and   time>=:starttime and time<:endtime GROUP BY date_format(mon
相关文章
相关标签/搜索