我试图从 3 列中获取最后 60 项的平均值,但我得到一个错误:
#1248 - Every derived table must have its own alias
这是查询:
SELECT AVG( Sensor1 ) , AVG( Sensor2 ) , AVG( Sensor3 )
FROM (
SELECT Sensor1, Sensor2, Sensor3
FROM temperatur
ORDER BY Zeit DESC
LIMIT 0 , 60
)
我对我相信的别名很迷茫..