a.time>= timestamp('".$start."')  and  a.time<= timestamp('".$end."')   //开始时间 和  结束时间
         timestamp('2011-11-17 00:00:00') and a.ctime <= timestamp('2011-11-17 23:59:59')    //像这样
---
1.在sqlserverl里timestamp 用啥合适呢?   取两个之间范围  
2.datediff 有仨参数 不能直接比