oracle 定义双重循环例子
发布日期:2025-04-29 13:29:44 浏览次数:16 分类:精选文章

本文共 794 字,大约阅读时间需要 2 分钟。

create or
replace
procedure
test_procedure
--a表游标定义
cursor
a_cursor
is
select
id from
a
--b表游标定义
cursor
b_cursor(aid number)
is
select
id from
b
where
b.id = aid
begin
for
a_cur loop
for
b_cur in b_cursor(a_cur.id) loop
insert into
c values
(b_cur.id)
commit
end loop
end loop
上一篇:ORACLE 客户端工具连接oracle 12504
下一篇:oracle 学习

发表评论

最新留言

路过按个爪印,很不错,赞一个!
[***.219.124.196]2026年06月20日 18时40分25秒