我有 2 个相当简单的查询需要做一个。我今天只是大脑一片空白。
SELECT max(StatusReportID)
FROM dbo_VehicleStatusReport
和
SELECT StatusReportID, StatusReportTime, CarNumber, VehicleID,
DriverNumber, DriverID, VehicleStatus, LocationX, LocationY,
Speed, Direction, InvalidGPS
FROM dbo_VehicleStatusReport
WHERE StatusReportID > " & MaxStatusReportID2 & "
其中 & MaxStatusReportID2 & 是第一个查询的结果减去 3000 (-3000)