SQL语言问题!简单! insert into youtableselect top 1 年月字段+1,其他字段 from youtable order by 年月字段 desc试试 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 insert into tablename(年月,其他字段) select dateadd(month,1,年月) as 年月,其他字段 from tablename where datediff(month,年月,getdate())=1 insert into youtableselect 年月字段+1, 其他字段 from youtable where 年月字段 = @年月 同意楼上,只是在年月字段做+1时有必要用datapart来做 insert 工资表 select 年月+1,姓名,工资 from 工资表 where 年月=(select max(年月) from 工资表) 很急,求助 sql 中的and or 问题 在还原数据库时出现的问题,见下,请帮忙处理,谢谢! SQL2005无法创建管理单元 sqlserver数据库如何部署到繁体系统 在数据库中,每天更改一个表的某个记录值,怎样做呢???? 数据库索引使用的问题 行转列的问题,望执教? 触发器问题 一个varchar(10)类型的数据作为唯一标志符,请问怎样让sql server自动生成?? SQL的逻辑判断顺序 可能是很简单的语法问题哦。
select 年月字段+1, 其他字段
from youtable
where 年月字段 = @年月