mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 11:32:03 +00:00
25 lines
570 B
Markdown
25 lines
570 B
Markdown
---
|
|
slug: /zh/sql-reference/statements/set
|
|
sidebar_position: 50
|
|
sidebar_label: SET
|
|
---
|
|
|
|
# SET 语句 {#query-set}
|
|
|
|
``` sql
|
|
SET param = value
|
|
```
|
|
|
|
给当前会话的 `param` [配置项](../../operations/settings/index.md)赋值。你不能用这样的方式修改[服务器相关设置](../../operations/server-configuration-parameters/index.md)。
|
|
|
|
|
|
您还可以在单个查询中设置指定设置配置文件中的所有值。
|
|
|
|
|
|
|
|
``` sql
|
|
SET profile = 'profile-name-from-the-settings-file'
|
|
```
|
|
|
|
更多详情, 详见 [配置项](../../operations/settings/settings.md).
|