--- title: "Copy" sidebarTitle: "Copy" description: "COPY ... TO — writing a query result to object storage as files." icon: file-export keywords: ["copy", "export", "parquet", "sql"] --- Enterprise [SQL runs on a deployment.](/sql) ```sql COPY (SELECT id, title FROM documents) TO 's3://bucket/export/' STORED AS PARQUET ``` Writes a query result to object storage. This is the export path when the consumer is another engine rather than an application -- results land as files rather than streaming to a client. ## What to read next {#next} Bringing rows in, rather than exporting them.