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