当前位置:Gxlcms > 数据库问题 > ORACLE存储过程while循环的使用

ORACLE存储过程while循环的使用

时间:2021-07-01 10:21:17 帮助过:156人阅读

CREATE OR REPLACE PROCEDURE proc_test

as

i number;

BEGIN

  i:=0;

while i < 10 LOOP

begin

 i:= i + 1;

--insert into student () values ();

Dbms_output.Put_line(‘插入第‘||i||‘条数据‘); 

end;

end LOOP;

END proc_test;


ORACLE存储过程while循环的使用

标签:oracle存储过程while循环的使用

人气教程排行