Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FLINK-24219][doc]Translate "SET Statements" page of "SQL" into Chinese #17223

Merged
merged 2 commits into from Sep 14, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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,它仅仅打印所有属性。否则,它会使用指定的 value 来设置 key
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about 否则,它会为 key 设置指定的 value 值。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok,It sounds clearly and concisely.
I have updated it as suggested.


{{< top >}}