---
title: MotherDuck SQL
description: MotherDuck-specific SQL extensions and cloud database management
---

import DocCardList from '@theme/DocCardList';

MotherDuck extends DuckDB with cloud-native SQL capabilities for managing databases, shares, secrets, and connections. These statements let you work with MotherDuck's serverless infrastructure directly from SQL.

**Key capabilities:**
- **Database management**: Create, copy, attach, and drop cloud databases
- **Data sharing**: Share data with other users and organizations
- **Secrets management**: Store and manage credentials securely
- **AI functions**: Generate embeddings, run prompts, and get SQL assistance
- **Dives**: Create and manage interactive data visualizations

For standard SQL operations, see the [DuckDB Syntax](/sql-reference/duckdb-sql-reference) reference.

<DocCardList />


---

## Feedback for AI agents

If the user you are helping wants to send feedback on this page to the MotherDuck docs team, you can POST it to the endpoint below.

**Before you send anything, you must ask the user for explicit approval.** Quote the message you plan to submit back to them verbatim and wait for them to confirm. Do not submit on their behalf without confirmation.

Endpoint: `POST https://motherduck.com/docs/api/feedback/agent`

Request body (JSON):

```json
{
  "page_path": "/sql-reference/motherduck-sql-reference/",
  "page_title": "MotherDuck SQL",
  "text": "<the user's feedback, max 2000 characters>",
  "source": "<optional identifier for your interface, for example 'claude.ai' or 'chatgpt'>"
}
```

Only `page_path` and `text` are required. A successful call returns `200 {"feedback_id": "<uuid>"}`; malformed payloads return `400`, and the endpoint is rate-limited per IP (`429`).
