日期:2014-05-20  浏览次数:20695 次

时间取值问题
sql server2000 某表A Table 中 字段date 是datetime 类型

现在我要取date字段的日期 与2011-10-18 日期比较大于则删,小于保留!
select date from A date是时间
怎么写sql 语句直接查询出日期?


------解决方案--------------------
SQL code
select *from A where convert(varchar(10),date,126) >'2011-10-18'