ttl.md 624 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
---
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
```
A
Draft.  
ana-uvarova 已提交
13 14 15

# ALTER TABLE REMOVE TTL

A
++  
ana-uvarova 已提交
16
Removes ttl-property from the table.
A
Draft.  
ana-uvarova 已提交
17 18 19 20 21 22 23

Syntax:

```sql
Syntax of the statement.
```

A
++  
ana-uvarova 已提交
24
ALTER TABLE r_no_prop_table MODIFY COLUMN some_column REMOVE TTL;
A
Draft.  
ana-uvarova 已提交
25

A
++  
ana-uvarova 已提交
26
**Example**
A
Draft.  
ana-uvarova 已提交
27

A
++  
ana-uvarova 已提交
28
Request
A
Draft.  
ana-uvarova 已提交
29

A
++  
ana-uvarova 已提交
30 31 32 33 34 35 36 37
```sql

```

Result

```text
```
A
Draft.  
ana-uvarova 已提交
38 39 40 41 42 43

## See Also (Optional)

Links to related topics as a list.

-   [link](#)