Export Utility in DB2

The export utility extracts data from a table into a file.The command supports many different options and also supports SELECT statements with join.
The following example of the export command exports all the rows in the Data table to the file data.ixf in IXF format

db2 "export to data.ixf of ixf selct * from data"

or

db2 "export to data.del of del select * from data"




All the keywords in this command are mandatory. that is, you have to provide theoutput file name , specify the file format, and the SELECT statement that will retrieve the rows to be exported.
The exported file can be in a format of DEL, IXF, or WSF.


Comments

Popular posts from this blog

Db2 export command example using file format (del , ixf)

How to fix DB2 Tablespace OFFLINE state issue?

Phases of a load operation