2020-07-14 21:02:41 +00:00
|
|
|
---
|
|
|
|
toc_priority: 44
|
|
|
|
toc_title: TTL
|
|
|
|
---
|
|
|
|
|
|
|
|
### Manipulations with Table TTL {#manipulations-with-table-ttl}
|
|
|
|
|
|
|
|
You can change [table TTL](../../../engines/table-engines/mergetree-family/mergetree.md#mergetree-table-ttl) with a request of the following form:
|
|
|
|
|
|
|
|
``` sql
|
|
|
|
ALTER TABLE table-name MODIFY TTL ttl-expression
|
|
|
|
```
|
2020-11-08 14:55:26 +00:00
|
|
|
|
|
|
|
# ALTER TABLE REMOVE TTL
|
|
|
|
|
|
|
|
Brief description of what the statement does.
|
|
|
|
|
|
|
|
Syntax:
|
|
|
|
|
|
|
|
```sql
|
|
|
|
Syntax of the statement.
|
|
|
|
```
|
|
|
|
|
|
|
|
## Other necessary sections of the description (Optional)
|
|
|
|
|
|
|
|
Examples of descriptions with a complicated structure:
|
|
|
|
|
|
|
|
- https://clickhouse.tech/docs/en/sql-reference/statements/grant/
|
|
|
|
- https://clickhouse.tech/docs/en/sql-reference/statements/revoke/
|
|
|
|
- https://clickhouse.tech/docs/en/sql-reference/statements/select/join/
|
|
|
|
|
|
|
|
|
|
|
|
## See Also (Optional)
|
|
|
|
|
|
|
|
Links to related topics as a list.
|
|
|
|
|
|
|
|
- [link](#)
|