create or replace procedure pro_test_loop is
i number;
begin
i:=0;
loop
i:=i+1;
dbms_output.put_line(i);
if i>5 then
exit;
end if;
end loop;
end pro_test_loop;
while循环:
create or replace procedure pro_test_while is
i number;
begin
i:=0;
while i<5 loop
i:=i+1;
dbms_output.put_line(i);
end loop;
end pro_test_while;
for循环1:
create or replace procedure pro_test_for is
i number;
begin
i:=0;
for i in 1..5 loop
dbms_output.put_line(i);
end loop;
end pro_test_for;
for循环2:
create or replace procedure pro_test_cursor is
userRow t_user%rowtype;
cursor userRows is
select * from t_user;
begin
for userRow in userRows loop
dbms_output.put_line(userRow.Id||','||userRow.Name||','||userRows%rowcount);
end loop;
end pro_test_cursor;
0
0
Java中Thread类的常用API以及使用示例
Vue+Leaflet.PM+Turf.js实现绘制多线段并自动生成辐射区(缓冲区)
SpringBoot中使用Redisson分布式锁的应用场景多线程、服务、节点秒杀/抢票处理
Turf.js(地理空间GIS分析的js库),处理地图相关算法
Java中使用CountDownLatch实现并发流程控制
Java中数据同步synchronized关键字与Mointor的使用
SpringBoot+Lombok+Builder实现任意个数属性的对象构造
【20220930】连岳摘抄
【20220928】按自己节奏走