MS SQL 日期比较

条件语句如下:
where indate>'2010-06-31'   如果indate为日期型那么indate大于2010-08-31 0:0:0数据将不包含在内,
必须写为where convert(varchar(10),indate,126)>'2010-06-31'  
posted @ 2010-09-10 14:11  大笑江湖  阅读(392)  评论(0编辑  收藏  举报