plsql更新超級大庫

declare
  cursor c is
    select rowid from id_card_no;
begin
  for v_emp in c loop
    update id_card_no icn set icn.fixed = '' where icn.rowid = v_emp.rowid;
    update id_card_no icn set icn.fixed = regexp_substr(icn.id_card_no,'\d{18}|\d{17}x|\d{17}X|\d{15}') where icn.rowid = v_emp.rowid;
    commit;
  end loop;
end;

發佈了96 篇原創文章 · 獲贊 19 · 訪問量 20萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章