改成:string selectStr="Select * from order1 where ordertime between '"+convert(datetime,cdate(btime))+"' and '"+convert(datetime,cdate(etime))+"'";