我试了,程序运行没有错误提求,但查询结果为0,我也把字段time 改为log_time,还不行.去掉日期查询正确.如何解决呢?
convert(datetime,time,111)>= 'yyyy/mm/dd' and convert(datetime,time,111)<= 'yyyy/mm/dd'
convert(datetime,time,111) between 'yyyy/mm/dd' and 'yyyy/mm/dd'
convert(datetime,time,111)>= 'yyyy/mm/dd' and convert(datetime,time,111)<= 'yyyy/mm/dd'
convert(datetime,time,111) between 'yyyy/mm/dd' and 'yyyy/mm/dd'