-2
我想从组中获得小于10的速度,但出现此错误:每个派生表都必须有自己的别名
我该如何解决它?
Every derived table must have its own alias
MySQL代码:
SELECT speed from
(SELECT stop_distance
FROM prognosis
WHERE mac = '12:B4:B3:89:H3:I3'
and stop_name = 'Sandstreet'
and stop_distance < 61)
where speed < 10
的[每一个派生表必须有自己的别名】可能重复(http://stackoverflow.com/questions/1888779/every-derived-table-must- have-its-own-alias) – PetSerAl
您需要为子查询提供一个别名:'FROM(SELECT ...)AS distance'。 –
解决该错误后,会出现另一个错误。内部查询(这是错误消息的“派生表”)不会返回列“速度”。 – GolezTrol