# 如何使用

要開始使用 SQL 助手，您需要提供一段資料定義語言（DDL）和一個任務描述。

* **DDL** **段落** – 一組 SQL 命令、對象、屬性和約束的子集，專注於定義或修改資料庫對象的結構。
* **任務描述** – 與 DDL 相關的指示，告訴 SQL 助手您需要什麼幫助。

<figure><img src="/files/uasauZTmxIjSux5XtAGp" alt="sql assistant 2"><figcaption></figcaption></figure>

每當您與 SQL 助手創建新聊天時，默認的佔位符提示會加載，模型如何創建您自己的提示：

* DDL 語句創建了一個名為 ‘transactions’ 的表，包含 5 列（transaction\_id、customer\_id、transaction\_date、amount 和 description）。
* 任務描述要求 SQL 助手提供一個查詢，該查詢將列印所有高於 1000 美元的交易。


---

# 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/how-to-use.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.
