select datediff(DAY,'2012/8/1','2012/8/20') as daysum
//注解:MONTH为月、DAY为查询天、HOUR为小时、MINUTE为分钟、SECOND为秒