Skip to content

Commit

Permalink
[FLINK-24219][docs-zh] Translate "SET Statements" page of "SQL" into …
Browse files Browse the repository at this point in the history
…Chinese (apache#17223)
  • Loading branch information
hapihu authored and jianyun8023 committed Sep 22, 2021
1 parent 6b9d8ae commit a286b35
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions docs/content.zh/docs/dev/table/sql/set.md
Expand Up @@ -24,18 +24,22 @@ specific language governing permissions and limitations
under the License.
-->

# SET Statements
<a name="set-statements"></a>

`SET` statements are used to modify the configuration or list the configuration.
# SET 语句

## Run a SET statement
`SET` 语句用于修改配置或展示配置。

<a name="run-a-set-statement"></a>

## 执行 SET 语句

{{< tabs "set statement" >}}
{{< tab "SQL CLI" >}}

`SET` statements can be executed in [SQL CLI]({{< ref "docs/dev/table/sqlClient" >}}).
`SET` 语句可以在 [SQL CLI]({{< ref "docs/dev/table/sqlClient" >}}) 中执行。

The following examples show how to run a `SET` statement in SQL CLI.
以下示例展示了如何在 SQL CLI 中执行一条 `SET` 语句。

{{< /tab >}}
{{< /tabs >}}
Expand All @@ -52,12 +56,14 @@ Flink SQL> SET;
{{< /tab >}}
{{< /tabs >}}

<a name="syntax"></a>

## Syntax

```sql
SET ('key' = 'value')?
```

If no key and value are specified, it just prints all the properties. Otherwise, set the key with specified value.
如果没有指定 key value,它仅仅打印所有属性。否则,它会为 key 设置指定的 value 值。

{{< top >}}

0 comments on commit a286b35

Please sign in to comment.