sqlite3 错误认为时间戳间隔

问题描述 投票:0回答:0

当我输入这个查询时,出现错误消息,说有一个语法错误,间隔为 10。

SELECT 
    airModules_Event_tracking.EMCid,
    airModules_Event_tracking.event_Timestamp,
    airModules_Event_tracking.TotalPriceUSD AS ModulePrice,
    FareNet_Searches.TotalPriceUSD AS SearchResultPrice
FROM 
    airModules_Event_tracking 
    LEFT JOIN FareNet_Searches ON airModules_Event_tracking.EMCid =       FareNet_Searches.EMCid 
AND FareNet_Searches.FareNetTimestamp >= airModules_Event_tracking.event_Timestamp -  INTERVAL '10' MINUTE 
AND FareNet_Searches.FareNetTimestamp <= airModules_Event_tracking.event.Timestamp + INTERVAL '10' MINUTE 
ORDER BY 
    airModules_Event_tracking.EMCid, airModules_Event_tracking.event_Timestamp DESC;

我尝试去掉撇号,但错误信息仍然出现

timestamp
© www.soinside.com 2019 - 2024. All rights reserved.