存储过程批量新增数据:

来源:互联网 发布:迷幻p图软件 编辑:程序博客网 时间:2024/06/05 08:19
declare
 i integer
 begin
 i:=1
 loop
 insert into user(id, name, password,...)
 values(to_char(i),'张新喜' + to_char(i),...);
 i:=i+1;
 exit when i > 100000;
 end loop;
 commit;
 end;
原创粉丝点击