Exporting result of select statement to CSV format in DB2

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

    DBeaver allows you connect to a DB2 database, run a query, and export the result-set to a CSV file that can be opened and fine-tuned in MS Excel or LibreOffice Calc.

    To do this, all you have to do (in DBeaver) is right-click on the results grid (after running the query) and select "Export Resultset" from the context-menu.

    This produces the dialog below, where you can ultimately save the result-set to a file as CSV, XML, or HTML:

    enter image description here

提交回复
热议问题