# SQL 助手

SQL 助手是一個創新的 SQL 數據庫 LLM，作為您的虛擬數據庫顧問，幫助您進行查詢優化、架構設計和數據管理任務。無論您是在排除性能瓶頸，還是尋求關於關聯設計原則的建議，SQL 助手都能讓您通過高效的數據庫操作充分發揮數據的潛力。

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

## SQL Assistant 可以幫助解決哪些類型的問題？

SQL Assistant 可以協助處理一系列與 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-hk/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.
