db2 服務器上大量數據的導出,導入,刪除


 

db2 connect to  數據庫的schema

導出數據到txt 文本

db2 ”export to  table(表名).txt  of del modified by nochardel select * from table(表)”;

 

從txt 中加載數據到db2中

db2"load from table(表名).txt of del modified by delprioritychar replace into  schema.table (schema ,table 根據說在數據庫的情況來改變) nonrecoverable";

 

db2 刪除大數據量的表

alter table schema.table(schema ,table 根據所在數據庫的情況來改變) activate not logged initially with empty table;

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM