求一简单SQL语句 table 中有date字段,类型为datetime,我想删除该表中当前系统日期的100天以前的数据,请问该如何写?谢谢delete from table where date?? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 delete table where datediff(dd,date,getdate())>100 delete from table where datediff(dd,date,getdate())<100 delete table where date<dateadd(day,-100,getdate()) delete from tablewhere convert(varchar(10),dateadd(dd,100,date),120)<convert(varchar(10),getdate(),120) 查询7天内数据,出现错误! 问个简单的存储过程语句 客户端怎么通过命令行执行远端sql server 2005服务器上的作业(job) 变量的SQL语句exec老是提示语法错误,麻烦大家看看 请教,简单的存储过程运行出错 50分求解。数据库不能附加的问题。 存储过程隐式转换 如何用一个SQL语句得到一个表中所有记录行的某个字符型字段的和? 关于select .. into 语句的问题 在Oracle中可以在变量中使用表名吗? 关于一个SQL的简单问题,分不成问题 一个表内统计查询
where convert(varchar(10),dateadd(dd,100,date),120)<convert(varchar(10),getdate(),120)