+ϩ
来自「介绍了数据库方面的基础知识」· 代码 · 共 15 行
TXT
15 行
作者:Ray
email: xu__lei@21cn.com
日期:00-3-24 下午 11:00:25
declare <cursor_name> scroll cursor for
select <fields_list> from <tables_list> where <conditions>
open <cursor_name>
fetch absolute N+1 from <cursor_name> into <vars_list>
while @@fetch_status=0
begin
insert <another_table> (<fields_list>) values (<vars_list>)
fetch next from <cursor_name> into <vars_list>
end
close <cursor_name>
decllocate <cursor_name>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?