EXPORT CSV Statement

Exports a script, table, or view to a CSV (comma-separated values) file. This statement is the scripting equivalent of the visual export wizard accessed via the Export menu.

Syntax


Parameters

Options

Example

-- In most cases, this is all that is required.
EXPORT CSV 'C:\file.csv' FROM TABLE my_table;

-- Use the SEPARATOR option to write tab-separated files.
EXPORT CSV 'C:\file.tsv' FROM TABLE my_table OPTIONS (SEPARATOR: CHAR(9));