2016-05-16 116 views

回答

0

肯定:

WHERE NOT BETWEEN '8:00' 和'19時間:00'

0
select * 
from MyTable 
where CAST(mytime as time) >= '19:00:00' 
    and CAST(mytime as time) < '08:00:00' 
0

嘗試這種方式

select * 
from MyTable 
where Datetimecolumn >= convert(datetime,'2016-05-16 19:00:00') 
    and Datetimecolumn <=dateadd(hh,12,convert(datetime,'2016-05-16 19:00:00'))