Exporting result of select statement to CSV format in DB2

后端 未结 6 651
感情败类
感情败类 2020-12-24 02:01

Is there any way by which we can export the result of a select statment to CSV file, just like in MySQL.

MySQL Command;

SELECT col1,col2,coln into OU         


        
6条回答
  •  萌比男神i
    2020-12-24 02:52

    I tried this and got a ';'-delimited csv file:

    --#SET TERMINATOR % 
    EXPORT TO result.csv OF DEL MODIFIED BY CHARDEL;
    SELECT * FROM A
    

提交回复
热议问题