sql中循环处理当前行数据和上一行数据相加减【点击查看详情】
sql中循环处理当前行数据和上一行数据相加减: 以下事例,使用游标循环表#temptable中数据,然后让当前行和上一行中的argument1 相加 存放到当前行的 argument2 中,比较简单。 --drop table #temptable create table #temptable ( argument1 int, argument2 int
相关视频/文章