SELECT *
FROM [orders]
WHERE orderReceived >= @startDate
AND orderReceived < @endDate
AND (strftime("%H", orderReceived) = "14"
OR strftime("%H", orderReceived) = "15")
于 2012-05-09T08:05:18.973 回答
This answer is useful
1
在where子句中添加以下内容:
time(mytimecol) > '14:00:00' AND time(mytimecol) < '16:00:00'