1. 程式人生 > >DB2 插入刪除資料量大怎麼辦

DB2 插入刪除資料量大怎麼辦

      1)插入資料量太大,會造成日誌空間滿,最終插入不了,應當設定一段數量後的提交:         db2 "import from 'E:\TG_DEBT_IMPAWN_UNTRADE.del' of del commitcount 1000          insert into TG_DEBT_IMPAWN_UNTRADE"       2)刪除大量資料,同時也會造成以上問題:         db2 "alter table tablename activate not logged initially with empty table"

      3) import from null of del replace into tabname;      通過測試,對於引數複製,建議清除上日表時方式採用import from /dev/null的方式,      千萬條記錄數清除時間約在秒級;

     4)怎樣在Excel表當中設定資料的有效性?         資料--->有效性         而後在其中編輯需要展示的資料即可