Scroll to navigation

MYSQL-XML-TO-CSV(1) General Commands Manual MYSQL-XML-TO-CSV(1)

NAME

mysql-xml-to-csvConvert MySQL XML output to CSV

SYNOPSIS

mysql-xml-to-csv [-N] [input.xml]

DESCRIPTION

mysql-xml-to-csv converts MySQL XML query results (i.e., produced using the mysql(1) command when given the --xml flag) into a CSV file.

The XML input is read from input.xml, if specified, otherwise standard input. The CSV output is written to standard output.

The first row of the CSV output contains column names unless the -N flag is given.

Any null values are converted into the empty string.

The character encoding used for the CVS output is UTF-8.

OPTIONS

Do not output the column names in the first row of the output file.

RETURN VALUES

mysql-xml-to-csv exits with one of the following values:

0
Input was successfully processed.
1
An error occurred.

SEE ALSO

mysql-xml-to-csv: Convert MySQL XML output to CSV, https://github.com/archiecobbs/mysql-xml-to-csv.

AUTHOR

Archie L. Cobbs ⟨archie.cobbs@gmail.com⟩

September 2, 2021 Linux 5.14.21-150500.55.52-default