DOKK / manpages / debian 11 / csvkit / sql2csv.1.en
SQL2CSV(1) User Commands SQL2CSV(1)

sql2csv - manual page for sql2csv 1.0.5

usage: sql2csv [-h] [-v] [-l] [-V] [--db CONNECTION_STRING] [--query QUERY]

[-e ENCODING] [-H] [FILE]

Execute an SQL query on a database and output the result to a CSV file.

The file to use as SQL query. If both FILE and QUERY are omitted, query will be read as piped data via STDIN.

show this help message and exit
Print detailed tracebacks when errors occur.
Insert a column of line numbers at the front of the output. Useful when piping to grep or as a simple primary key.
Display version information and exit.
An sqlalchemy connection string to connect to a database.
The SQL query to execute. If specified, it overrides FILE and STDIN.
Specify the encoding of the input query file.
Do not output column names.

The full documentation for sql2csv is maintained as a Texinfo manual. If the info and sql2csv programs are properly installed at your site, the command

info sql2csv

should give you access to the complete manual.

October 2020 sql2csv 1.0.5