Syntax
UNLOAD TO filename [ DELIMITER character ] SELECT-Command;
Description:
Writes the results of an SELECT statement into an flat file. Each record is written into a new line and the fields are separated with the specifyed delimiter. The default delimiter in most RDBMS is '|'.