游标更新字段脚本
来源:互联网 发布:mac 拖拽文件 编辑:程序博客网 时间:2024/05/17 03:07
declare test cursor for
select studentcode from student where classid =25541 order by studentcode
declare @studentcode nvarchar(16),@ID2 nvarchar(10)
declare @ii int
set @ii=1
open test
fetch next from test into @studentcode
while @@fetch_status=0
begin
select @ID2=@ii--substring(@studentcode,16,2)
update student
set studentname=studentname+@ID2
where studentcode=@studentcode
set @ii=@ii+1
fetch next from test into @studentcode
end
close test
deallocate test
go
- 游标更新字段脚本
- 利用游标更新字段值
- oracle使用游标更新表中的字段
- Oracle中用游标更新字段值的面试题
- 更新游标
- MySQL更新字段中部分内容&shell脚本执行命令
- python脚本实现批量更新数据库中字段值
- Oracle存储过程游标循环更新新增字段处理线上历史数据问题
- 游标更新数据
- 游标更新数据
- 更新游标的用法
- SQL SERVER 游标 更新
- 游标加锁更新数据
- 定义游标,产生字段列表
- 游标操作,使用游标,更新数据
- Oracle 参数 游标[游标更新删除数据]
- Oracle 参数 游标[游标更新删除数据]
- sqlserver可更新的游标
- 写在......之前
- 掌握linux调试技术
- 关于Yahoo Search Assist
- Java开源的简单易用验证码
- Only Read & Write World - Rex Wang
- 游标更新字段脚本
- 系统架构师应有的素质
- CCNA实验题总结-CCNA指导
- 程序员与青春饭
- 可能开始就是结束
- TCPMP
- [转]Struts2拦截器的使用 (详解)
- vb正整数排序法
- ejb调用原理