# Cách sử dụng

Để bắt đầu với SQL Assistant, bạn sẽ cần cung cấp một đoạn Ngôn Ngữ Định Nghĩa Dữ Liệu (DDL) và một mô tả nhiệm vụ.

* **Đoạn DDL** – một tập hợp con của các lệnh SQL, đối tượng, thuộc tính và ràng buộc tập trung vào việc định nghĩa hoặc sửa đổi cấu trúc của các đối tượng cơ sở dữ liệu.
* **Mô tả nhiệm vụ** – hướng dẫn liên quan đến DDL cho biết SQL Assistant cần giúp đỡ điều gì.

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

Thông báo mặc định sẽ tải lên mỗi khi bạn tạo một cuộc trò chuyện mới với SQL Assistant, mô phỏng cách tạo các thông báo của riêng bạn:

* Câu lệnh DDL tạo một bảng có tên ‘transactions’ với 5 cột (transaction\_id, customer\_id, transaction\_date, amount, và description).
* Mô tả nhiệm vụ yêu cầu SQL Assistant cung cấp một truy vấn sẽ in ra tất cả các giao dịch lớn hơn 1000 đô la.


---

# 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/vi/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.
