返回2004-10 月分以来的所有帖子 ,怎么写SQL 语句?? select * from tablename where convert(char(7),datecol,120)='2004-10' 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from tablename where convert(char(7),datecol,120)<='2004-10' Select * from 表 Where DateDiff(d,'2004-10-01',字段)>0 select * from tablename where datediff(m,datecol,'2004-10-1')<=0 这样也可以Select * from 表 Where Convert(varchar(7),字段,120)>='2004-10' select * from tablename where convert(char(7),datecol,120>='2004-10-01' select * from tablename where (cast(year(Datatime) as varchar)++'-'+cast(month(Datatime) as varchar))='2004-10' 急!!!!!!!!SQL Server 2005 Reporting Service +vs2005的使用 【求指点】删除过期备份的作业执行失败 怎么统计“其他”? 将文本文件中用::分割开的数据导入数据库中 郁闷几天了,到现在也没有解决,请高手看一下吧! select 查询新建问题! 请帮助!谢谢 菜鸟求助,求大神帮忙 求一SQL语句,请大家帮忙,50分,谢谢!在线等 数据最大限度均匀分布的问题 sql 批量模糊查询 和批量完全匹配语法 如何将EXCEL中某列有相同的字段追加到数据加中? sqlserver用SQL语句如何创建新用户
+'-'+cast(month(Datatime) as varchar))='2004-10'