Send one result set to a file without changing subsequent output.
Section: Output, import, and export
Write the next query result to a file
text
text
.once users.csvExplanation
Combine with `.mode csv` and a `SELECT` statement to export a query result.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Output, import, and export