Exporting result of select statement to CSV format in DB2

后端 未结 6 644
感情败类
感情败类 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条回答
  •  [愿得一人]
    2020-12-24 02:36

    According to the docs, you want to export of type del (the default delimiter looks like a comma, which is what you want). See the doc page for more information on the EXPORT command.

提交回复
热议问题