ClickHouse/docs/en/sql-reference/statements/alter/ttl.md

44 lines
624 B
Markdown
Raw Normal View History

---
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
2020-11-16 09:08:10 +00:00
Removes ttl-property from the table.
2020-11-08 14:55:26 +00:00
Syntax:
```sql
Syntax of the statement.
```
2020-11-16 09:08:10 +00:00
ALTER TABLE r_no_prop_table MODIFY COLUMN some_column REMOVE TTL;
2020-11-08 14:55:26 +00:00
2020-11-16 09:08:10 +00:00
**Example**
2020-11-08 14:55:26 +00:00
2020-11-16 09:08:10 +00:00
Request
2020-11-08 14:55:26 +00:00
2020-11-16 09:08:10 +00:00
```sql
```
Result
```text
```
2020-11-08 14:55:26 +00:00
## See Also (Optional)
Links to related topics as a list.
- [link](#)