export a table from db2 without column headers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sriha
    New Member
    • Apr 2017
    • 1

    export a table from db2 without column headers

    I created a table in db2 ..and i want to send that table to excel 2013 version..i added power query plugin..everyth ing goes nice..but now i want send my table without column headers because i created already column names in excel..this data from db2 should be send to the existed column names in excel.
  • AngocA
    New Member
    • Jul 2017
    • 1

    #2
    You can use the export command. From the command line, it could be:

    db2 "export to myfile.csv of del select * from mytable"

    Instead, i9f you want to redirect the output (only columns) and then process it, you can use the x modifier in the db2clp:

    db2 -x "select * from mytable"

    Comment

    Working...