1. 程式人生 > >db2資料表匯入(import)匯出(export)命令

db2資料表匯入(import)匯出(export)命令

#匯出命令

db2 export to [file_name] of ixf select [column1,column2,...] from [tablename]

#匯入命令

db2 import from [file_name] of ixf insert into [tablename]

#匯入命令(如果資料量過大,則要加入commitcount引數如下,否則可能會出現事務日誌滿的錯誤(Database transaction log is full))

db2 import from [file_name] of ixf commitcount [n] insert into [tablename]