# SQL 助手

SQL助手是一个创新的SQL数据库LLM，作为您的虚拟数据库顾问，帮助您进行查询优化、架构设计和数据管理任务。无论您是在排查性能瓶颈，还是寻求关系设计原则的建议，SQL助手都能通过高效的数据库操作使您充分利用数据的潜力。

<figure><img src="/files/5wIa4QYlg8TXa82vSd6o" alt="sql assistant 1"><figcaption></figcaption></figure>

## SQL助手可以帮助解决哪些类型的问题？

SQL助手可以帮助解决一系列与SQL相关的问题，包括但不限于：

* **编写SQL查询** – 帮助编写各种SQL查询，如SELECT、INSERT、UPDATE、DELETE、ALTER、CREATE、DROP等。
* **解释SQL概念** – 解释各种SQL概念，如连接、规范化、索引、事务、存储过程等。
* **故障排除SQL查询** – 帮助调试并提供解决方案或变通方法，处理无法按预期工作的查询。
* **优化SQL查询** – 提出优化SQL查询以提高性能的方法。
* **数据建模** – 帮助设计数据库架构并提供最佳实践建议。
* **数据分析中的SQL** – 编写复杂查询以执行数据分析任务。
* **数据库管理** – 帮助与数据库管理相关的概念，如备份、复制、分区等。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.skydeck.ai/zh-cn/genstudio-workspace/tools/sql-assistant.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
