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

sql2csv - manual page for sql2csv 1.0.7

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 FILE and --query are omitted, the query is 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. 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.

March 2022 sql2csv 1.0.7