Database: Export query to CSV

Export query results to a CSV file.

Help Centre › Building Processes

Export query results to a CSV file.

Add it to a process

In the process designer, open the Add step tab. Find Export query to CSV under Database › Bulk & Import/Export, or type its name in the search box, and drag it onto the canvas.

Fields

FieldRequiredWhat it does
SQL SELECT queryYesThe SQL query to execute
Output file pathYesThe file path to export the results to
Connection nameYesConnection name
Parameters (JSON array)NoQuery parameters, one per line (value or key=value)
DelimiterNoThe CSV delimiter character Choices: Comma (,), Pipe (|), Semicolon (;), Tabs (\t). Default: ,.

See all Database steps.

Errors

ErrorDescription
Connection not foundNo open connection exists with the specified name
Query errorThe SQL query contains a syntax error or references invalid objects
File write errorUnable to write to the specified file path

Tips

  • Use SELECT with specific column names rather than SELECT * to control the output format
  • Ensure the target directory exists before exporting
  • Use parameterised queries to safely include dynamic filter values

Related functions

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.