SELECT top 5000 convert(varchar(10), v.date, 120) as date,v.pname,v.caozuo,v.leixing,v.yongpin ,v.yongliang,v.id from view_czjl1 v
where date between 2013/11/1 and 2013/11/13;
date 用了convert 就是string 类型? 后面不能用between and ?
我只需要把date类型后面的时分秒毫秒去掉。 怎么操作
------解决方案--------------------
SELECT top 5000 convert(date, v.date, 120) as date,v.pname,v.caozuo,v.leixing,v.yongpin ,v.yongliang,v.id from view_czjl1 v
where date between 2013/11/1 and 2013/11/13;