declare
 my_data table_name%rowtype;
 my_num number;
begin
  select col1,col2 into my_data from table_name t where col_name = '110101201605165';
  for my_num in 1..10000000
    loop
      insert into table_name t (t.col1,t.col2)
                         values (my_num, my_data.col2);
      if  mod(my_num,10000) = 0 then
        commit;
      end if;
    end loop;
    commit;
end;

精简许多,感觉还可以

相关文章:

  • 2022-02-06
  • 2021-10-14
  • 2021-10-05
  • 2022-01-13
  • 2021-10-09
  • 2021-12-17
  • 2021-10-06
  • 2021-09-11
猜你喜欢
  • 2021-11-16
  • 2021-06-05
  • 2021-08-25
  • 2022-02-08
  • 2022-01-16
  • 2021-12-15
  • 2022-01-02
相关资源
相似解决方案