注册 登录
编程论坛 SQL Server论坛

[求助]找不到数据

非凡DZ 发布于 2007-08-27 15:21, 441 次点击
select * from copy where BeginTime between 2007-08-26 and 2007-08-29
我想查找这段时间内的数据 表中明明有 为什么查不到呢
请高手指点

表中数据为
1
0023_ABC 0001 2007-08-27 13:13:00 2007-08-27 14:29:00 12.666665999999999
2
0024_ABE 0002 2007-08-27 13:25:00 2007-08-27 14:32:00 11.166665999999999
2 回复
#2
非凡DZ2007-08-27 15:25
我解决了 不好意思 忘加''了
#3
TigerEAngil2007-08-27 16:05
select * from copy where convert(datetime,BeginTime) between
convert(datetime,'2007-08-26') and convert(datetime,'2007-08-29')
1