日期:2014-05-18 浏览次数:20641 次
A B
2007-10-18 上午 11:20:22 thems
2007-10-16 上午 11:20:23 thems
2007-10-17 上午 11:20:24 thems
2007-10-18 上午 11:20:26 thems
select * from tb where convert(varchar(10),字段,120) = '2007-10-18'
------解决方案--------------------
等于:
select * from 表名 where convert(varchar(10),A,120) = '2007-10-18'
大于:
select * from 表名 where convert(varchar(10),A,120) > '2007-10-18'
小于:
select * from 表名 where convert(varchar(10),A,120) < '2007-10-18'