mirror of
https://github.com/lancedb/lancedb.git
synced 2026-10-12 23:02:28 +00:00
OSS docs now own the full usage content for features that only run against an Enterprise deployment, since the client interface itself lives here; Enterprise docs keep only the parts specific to its own behavior. Sophon's overlay for these five pages is dropped since the OSS versions are now the complete reference. SQL Reference is restructured to match an object-type SQL manual (DDL by object, then DML, then DQL, then Expressions) instead of the old flat, loosely-ordered page list, absorbing the SQL client-connection guide and FTS-via-SQL examples into it.
24 lines
690 B
Plaintext
24 lines
690 B
Plaintext
---
|
|
title: "Copy"
|
|
sidebarTitle: "Copy"
|
|
description: "COPY ... TO — writing a query result to object storage as files."
|
|
icon: file-export
|
|
keywords: ["copy", "export", "parquet", "sql"]
|
|
---
|
|
|
|
<Badge color="red">Enterprise</Badge> [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}
|
|
|
|
<Card title="Insert" icon="plus" href="/sql/dml/insert">
|
|
Bringing rows in, rather than exporting them.
|
|
</Card>
|