Skip to content

Canonical way of batch uploading a whole lot of CSVs into DuckDB from Python #3150

Answered by Mytherin
vegabook asked this question in Q&A
Discussion options

You must be logged in to vote

Both the COPY statement and the read_csv_auto function support wildcards, so you can do e.g.

COPY tbl FROM 'test*.csv' (FORMAT CSV, ...);

I assume these instructions refer to the CLI version of duckdb, because this is not specified

All of the instructions there are in SQL, which can be used from every client.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by vegabook
Comment options

You must be logged in to vote
2 replies
@vegabook
Comment options

@rsund
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #3149 on February 24, 2022 16:07.