标签: sql-server search datetime
表格中有两列开始时间和结束时间。我想根据时间进行搜索。我已经以下面的格式保存了开始时间和结束时间
14:57:44
使用Convert(varchar(20),Getdate(),108)
Convert(varchar(20),Getdate(),108)
请帮帮我。
答案 0 :(得分:2)
select * from your_table where cast(time_column as time) between '10:00:00' and '11:00:00'