⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cursor_update.sql

📁 本程序中即有讲义
💻 SQL
字号:
use pubs
go
declare cur_title cursor dynamic --  fast_forward dynamic KEYSET STATIC
for 
select price from titles
for update
open cur_title
declare @temp real 
fetch first from cur_title into @temp
print @temp
update titles set price=price+1 where current of cur_title
fetch first from cur_title into @temp
print @temp

close cur_title
deallocate cur_title

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -