0

The output of mysqldump -not csv does not contain the columns, just values:

select * from AUDIT_RESULT 
INTO OUTFILE '/va/tmp/audit_nresult.csv'

FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n';

It does not contain the column names just the values. How to get the column names also?

bjoster
  • 4,805
  • 5
  • 25
  • 33
MethodistMX
  • 23
  • 1
  • 1
  • 4

1 Answers1

1

Export Table into CSV Format Using MySQL Workbench

  1. Run the statement/query and get its result set.

  2. Then, in the result panel, click "export recordset to an external file" option. The recordset is used for the result set.

  3. Finally, a new dialog box will be displayed. Here, we need to provide a filename and its format.