orancle数据库 插入数量 值大于 1000 解决方案

 存储过程:当基站ID大于1000的时候,把ID通过存储过程插入表,然后处理

 不推荐这么弄,没办法,项目逼到这了,以后尽量避免这样的需求发生!

CREATE OR REPLACE PROCEDURE insert_tempStation_proc(v_instr in clob) is
    v_str clob;
    v_res_str clob;
 v_current VARCHAR2(100);

    begin
       v_str :=to_clob(v_instr);
        v_res_str :=to_clob( '');
    v_current := '';
    loop
    EXIT WHEN v_str IS NULL;
    SPLIT_STRING_SP(v_str, v_res_str, v_current, ',');
    v_str:=v_res_str;
    insert into temp_station values(v_current);
    --使用v_current进行操作
    end loop;
    commit;
    end;
原文地址:https://www.cnblogs.com/xiaoshi657/p/4624690.html