declare
maxnumber constant number:=10000;
i number :=1;
begin
for i in 1..maxnumber loop
insert into DEPT(DEPTID,DEPTNAME,FATHERID)
values(i,CONCAT('test',i),i-1); --CONCAT('test',i)是将test与i进行拼接
end loop;
dbms_output.put_line(' 成功录入数据! ');
commit;
end;

相关文章:

  • 2021-12-06
  • 2021-09-25
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-03-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案