About
Blog
Demos
Book Diary

Exporting CSV From DuckDB

If doing this based on a query that has been interactively developed, the easiest way is:

.mode csv
.output myfile.csv
SELECT * FROM mytable; -- or whatever query you want
.output -- to reset output to console

Github
LinkedIn
© Peter Stace 2015-2024