insert into youtable
select top 1 年月字段+1,其他字段 
from youtable 
order by 年月字段 desc试试

解决方案 »

  1.   

    insert into tablename(年月,其他字段) select dateadd(month,1,年月) as 年月,其他字段 from tablename where datediff(month,年月,getdate())=1
      

  2.   

    insert into youtable
    select 年月字段+1, 其他字段 
    from youtable 
    where 年月字段 = @年月
      

  3.   

    同意楼上,只是在年月字段做+1时有必要用datapart来做
      

  4.   

    insert 工资表 select 年月+1,姓名,工资 from 工资表 where 年月=(select max(年月) from 工资表)