34,590
社区成员
发帖
与我相关
我的任务
分享
select * from Table where col between '2011-09-01' and '2011-09-01 23:59:59 999'
select col from tb
where col>='2011-09-02'
AND col<'2011-09-03
'--比如col上的索引是datetime时创建的
--那么用到时如果是
select col from tb with(index=索引) where convert(varchar(10),col,120)='2011-09-02'
--那这个索引还有用么?起的到检索效果么?
[Quote=引用 2 楼 maco_wang 的回复:]