mirror of
https://github.com/lancedb/lancedb.git
synced 2026-10-30 15:26:52 +00:00
## Summary - Complete the SQL reference: `ATTACH DATABASE`, the `CHANGES` clause, and `dedupe()`/`duplicate_pairs()` (verified against current sophon source; these were recently renamed from `vector_dedup`/`vector_duplicate_pairs`). Fix the blob-column default-projection claim and add the previously undocumented `blob_descriptor()`. - Enrich the gated Functions draft (still `.mintignore`'d, pre-release): chained Functions over blob outputs, GPU-produced blobs, Secrets, multi-input/output binding, `code=[module]` packaging. - Upgrade the materialized-view and computed-column auto-refresh drafts with precise, verified catch-up semantics, and add the missing `ALTER MATERIALIZED VIEW` / `CREATE ... WITH(...)` sections (also gated — the automatic-refresh scheduler is still dev/staging-only). - Thread one running example (video frames → GPU extract/caption → dedup → auto-refreshing materialized view) through Functions, materialized views, and the LeRobotDataset integration guide instead of a separate tutorial. - Rename "LanceDB OSS"/"OSS" to "LanceDB Embedded"/"Embedded" throughout (52 files); activate the existing availability-comparison mechanism on `basics/offerings.mdx` for a full feature-by-feature comparison table.
35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
---
|
|
title: "Insert"
|
|
sidebarTitle: "Insert"
|
|
description: "INSERT INTO, including INSERT ... SELECT to move rows server-side."
|
|
icon: plus
|
|
keywords: ["insert", "insert into", "sql"]
|
|
availability:
|
|
embedded: unavailable
|
|
enterprise: available
|
|
---
|
|
|
|
```sql
|
|
INSERT INTO documents (id, title) VALUES (1, 'Merlin'), (2, 'Arthur')
|
|
|
|
INSERT INTO archive SELECT * FROM documents WHERE created_at < '2026-01-01'
|
|
```
|
|
|
|
`INSERT ... SELECT` is the form worth knowing: it moves rows between tables
|
|
server-side, without a round trip through your process.
|
|
|
|
Commits a new table version, so [versioning](/management/table#versioning) and
|
|
the [write guarantees](/basics/guarantees#writes) apply, including that the
|
|
version advances even when the statement affects zero rows.
|
|
|
|
## What to read next {#next}
|
|
|
|
<CardGroup cols={2}>
|
|
<Card title="Insert" icon="plus" href="/ingestion/insert">
|
|
The SDK equivalent.
|
|
</Card>
|
|
<Card title="Merge Insert" icon="code-merge" href="/ingestion/merge-insert">
|
|
Upsert (matching incoming rows against existing keys) has no SQL form.
|
|
</Card>
|
|
</CardGroup>
|