Scroll to navigation

SQL2CSV(1) User Commands SQL2CSV(1)

NAME

sql2csv - manual page for sql2csv 1.1.1

DESCRIPTION

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.

positional arguments:

The file to use as SQL query. If FILE and --query are omitted, the query is piped data via STDIN.

options:

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.

SEE ALSO

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 2023 sql2csv 1.1.1