条件语句如下:

where indate>'2010-06-31'   如果indate为日期型那么indate大于2010-08-31 0:0:0数据将不包含在内,
必须写为where convert(varchar(10),indate,126)>'2010-06-31'