{
  "id": "duckdb-copy-table",
  "kind": "table",
  "slug": "duckdb-copy",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/duckdb-copy/",
  "title": "COPY in DuckDB reads and writes CSV, Parquet, and JSON files",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "COPY lineitem FROM 'lineitem.csv'",
      "source": "DuckDB",
      "detail": "auto-detected CSV options"
    },
    {
      "name": "COPY lineitem FROM 'lineitem.csv' (DELIMITER '|')",
      "source": "DuckDB",
      "detail": "manually specified CSV options"
    },
    {
      "name": "COPY lineitem FROM 'lineitem.pq' (FORMAT parquet)",
      "source": "DuckDB",
      "detail": "a Parquet file"
    },
    {
      "name": "COPY lineitem FROM 'lineitem.json' (FORMAT json, AUTO_DETECT true)",
      "source": "DuckDB",
      "detail": "a JSON file"
    }
  ],
  "related_slugs": [
    "postgres-copy-bulk-load",
    "sqlite-when-to-use",
    "hf-datasets-load-local-files"
  ],
  "license": "CC-BY-4.0",
  "source_license": "MIT (DuckDB); MIT (DuckDB); prose restates cited source lines in own words",
  "as_of": "2026-11-20",
  "status": "deep-draft-20261120",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}