oracle的for循环实例

create table temp_tab
(
  id number primary key not null,
  name varchar2(50) not null,
  age number not null
  
);
declare
  ids number(30) :=0;
  names varchar2(50) :='测试';
  age number(30) :=5;
begin
  for i in 1..10 loop
     ids :=ids+1;
     age :=age+1;
     insert into temp_tab values(ids,names,age);
  end loop;
end;

你可能感兴趣的:(oracle)