设为首页 加入收藏

TOP

Oracle隐式游标简析
2014-11-24 02:40:18 来源: 作者: 【 】 浏览:2
Tags:Oracle 游标 简析
Oracle隐式游标简析
create or replace procedure 隐式游标 as
flag CHAR := 'U' ;
begin
if SQL%found then
update table3 set TANAME='问问' where taid=1;
commit;
flag :='I';
insert into table3(taid,taname,bqid) values(4,'人事部',2);
commit; www.2cto.com
end if;
if flag ='U' then
dbms_output.put_line('表已更新');
ELSE
dbms_output.put_line('记录已插入');
end if;
end 隐式游标;
作者 勇往直前102002
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Oracle 10g服务启动/停止脚本 下一篇ORA-01031: insufficient privile..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·Java后端面试实习自 (2025-12-25 09:24:21)
·Java LTS版本有哪些 (2025-12-25 09:24:18)
·2025年,JAVA还值得 (2025-12-25 09:24:16)
·用 C 语言或者限制使 (2025-12-25 08:50:05)
·C++构造shared_ptr为 (2025-12-25 08:50:01)