请教:如何读取某个时间段之间的数据
只要sql语句比如:
select * from * where 时间 between '23:55:40' and '00:58:40'
我想要从23:55:40到00:58:40这63分钟之间的数据
上面的时间段应该怎么改???
谢!
2007-10-04 15:30
2007-10-04 15:46
2007-10-04 15:59
2007-10-04 16:56
From *是什么意思?
还有时间错误了.23:55:40到00:58:40这63分钟之间不是这样表示的.

2007-10-04 17:31
2007-10-05 09:39
2007-10-05 09:45
2007-10-05 10:13
2007-10-05 10:26
[CODE]create table #t(
starttime datetime,
endtime datetime
)
go
insert #t select '1988-01-02 05:06:10','1988-01-02 10:06:10'
union all select '2007-10-02 15:06:30','1988-01-02 10:06:10'
union all select '2007-10-05 23:55:40','2007-10-06 00:58:40'
union all select '1986-05-05 20:06:50','1986-05-05 21:06:10'
select starttime,endtime from #t where datediff(minute,starttime,endtime)=63
drop table #t[/CODE]

2007-10-05 10:42