摘要:
create proc sp_backupasdeclare @dbname varchar(20),@cmd1 nvarchar(120),@cmd2 varchar(120),@cmd3 varchar(120),@i int,@filename varchar(80),@path varchar(80)set @dbname='TEST'--\\这是数据库名,使用时只需要把它改成你所要备份的数据库名即可,这个必须修改\\------删除当前日期前15-前10天内的数据库备份,可根需要自行修改----set @i=10while @i<15 begin set @cm 阅读全文
摘要:
将数据导入exceL中,不想再C#里直接计算,直接将查询总数量合并 直接返回SELECT e_salecode as b,count(e_quantity) as a FROM e_stockout where e_stockid in(3,4) and e_senddate='2012-01-12' group by e_salecodeunion all select 'Total Count', count(e_quantity) FROM e_stockout where e_stockid in(3,4) and e_senddate='201 阅读全文