📅  最后修改于: 2022-03-11 15:05:31.934000             🧑  作者: Mango
declare @starttime datetime = '2012-03-07 22:58:00'
SELECT BookingId, StartTime
FROM Booking
WHERE ABS( DATEDIFF( minute, StartTime, @starttime ) ) <= 60