请问datetime类型如何查询,like '%2005-2-25%'失败 where datediff(day,字段,'2005-2-25')=0 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from 表 where cast(convert(varchar(10),字段,120) as datetime)='2005-02-25'就行了 select * from tablename where datediff(d,datecol,convert(datetime,'2005-2-25',120))=0 convert(char(8),日期字段,120)='20050225' where convert(char(10),datetime,120) like '%2005-01-01%' select * from tablename where cast(convert(varchar(10),datecol,120) as datetime)='2005-02-25' convert(varchar(20),time字段)然后再处理... where datediff(day,字段,'2005-2-25')=0 tempdb初始大小设置 ~~~~~~~~~~~~2000的数据库实例加到2005后,再重新附加到2000后,附加不上了,怎么办? 要查看系统中的所有表? 如何返回一个结果集的字节大小? =======求个SQL语句===== 【求指导】mysql union查询效率优化方法 如何把2005的mdf文件导入到2000中? 怎么创建约束 SQL子查询问题-实现后面数据的更新 紧急:SQL 2005启动后又停止求教 请教SQL语句写法(简单) 请问一个access转sqlserver过程中2个非常郁闷的问题!
where cast(convert(varchar(10),datecol,120) as datetime)='2005-02-25'
然后再处理...