Exporting result of select statement to CSV format in DB2

后端 未结 6 683
感情败类
感情败类 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:58

    I'm using IBM Data Studio v 3.1.1.0 with an underlying DB2 for z/OS and the accepted answer didn't work for me. If you're using IBM Data Studio (v3.1.1.0) you can:

    1. Expand your server connection in "Administration Explorer" view;
    2. Select tables or views;
    3. On the right panel, right click your table or view;
    4. There should be an option to extract/download data, in portuguese it says: "Descarregar -> Com sql" - something like "Download -> with sql;"

提交回复
热议问题