怎样备份两个月的数据? select * into newtable from oldtablewhere datediff(month,时间字段,getdate())=2 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from tablename where datediff(month,getdate(),时间字段)<2) 这样提取的数据是近两个月的数据select * from 表where datediff(month,时间字段,getdate())<=2 where 时间字段 between dateadd(month,-2,getdate()) and getdate() select * into newtable from oldtablewhere datediff(month,时间字段,getdate())<=2 exec master..xp_cmdshell 'bcp "select * from 数据库..表 where 日期>=''2000-01-01'' and 日期<=''2000-03-01''" queryout c:\filename.txt -w -T' sqlserver好象有个软件可以智能备份 T-SQL中用变量创建表、列名,应该怎么做? 用存储过程如何导出数据库????????? 将两条SQL合二为一 关于将SQL执行的脚本生成bat文件的问题? 一个简单很难写的SQL 查询,解决给100分??? 急! 表中数据行锁定!我看过以前的贴,好像都不具体,试验不成功! 想做个邮件收发程序 用什么办法来保存邮件?数据库吗? 怎麼得到一個字符串中某個字符的個數....在線等..好急啊. 存储过程如何输出text字段???? 用SQL语句怎样将远程服务器上的数据库备份到我的客户机上。。。谢 求助:出现下面这两条ODBC错误信息是什么原因?等... 向各位讨教一个问题?
select * from 表
where datediff(month,时间字段,getdate())<=2
from oldtable
where datediff(month,时间字段,getdate())<=2