ClickHouse/docs/en/sql-reference/statements/set.md

22 lines
577 B
Markdown
Raw Normal View History

2020-07-11 11:05:49 +00:00
---
2022-08-28 14:53:34 +00:00
slug: /en/sql-reference/statements/set
sidebar_position: 50
sidebar_label: SET
2020-07-11 11:05:49 +00:00
---
2022-06-02 10:55:18 +00:00
# SET Statement
2020-07-11 11:05:49 +00:00
``` sql
SET param = value
```
2023-06-21 17:11:54 +00:00
Assigns `value` to the `param` [setting](../../operations/settings/index.md) for the current session. You cannot change [server settings](../../operations/server-configuration-parameters/settings.md) this way.
2020-07-11 11:05:49 +00:00
You can also set all the values from the specified settings profile in a single query.
``` sql
SET profile = 'profile-name-from-the-settings-file'
```
For more information, see [Settings](../../operations/settings/settings.md).