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
相關文章
相關標籤/搜索