> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# Translate Trino SQL

> From v3.3.9, the database supports translating Trino SQL statements into the database SQL statements.

**Beta 功能**

[关于 Beta 功能的使用建议](/documents/cn/4.2/maturity/features.md)

从 v3.3.9 开始，数据库 支持将 Trino SQL 语句转换为 数据库 SQL 语句。

## 语法

```SQL theme={null}
TRANSLATE TRINO <SELECT_statement>
```

## 参数

`SELECT_statement`：您想要转换的 Trino SQL 语句。

## 返回

返回 数据库 SQL 语句。

## 示例

```Plain theme={null}
mysql> TRANSLATE TRINO SELECT id, name, category FROM products WHERE name = 'Dell XPS 13'  AND category = "Electronics"  AND `price` > 500;
+---------------------------------------------------------------------------------------------------------------------------------------+
| Translated SQL                                                                                                                        |
+---------------------------------------------------------------------------------------------------------------------------------------+
| SELECT `id`, `name`, `category`
FROM `products`
WHERE ((`name` = 'Dell XPS 13') AND (`category` = 'Electronics')) AND (`price` > 500) |
+---------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.30 sec)
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.