Oracle快速插入500w条数据sql语句_一声叹息_新浪博客

declare

count1 number(10):=1;

begin

    loop

      insert into TASK_ITEMS

      values

        (

        HIBERNATE_SEQUENCE.nextval, '470400205421112'||count1, '21-000000002222');

        count1 := count1+1;

       exit when count1>1000000;

     end loop;

end;

阅读全文……

你可能感兴趣的:(oracle,sql,database)