提交 ac4e9952 编写于 作者: A ana-uvarova

++

上级 61116012
......@@ -122,14 +122,14 @@ Example:
ALTER TABLE visits MODIFY COLUMN browser Array(String)
```
## ALTER TABLE MODIFY COLUMN col_name REMOVE what_to_remove
## ALTER TABLE MODIFY col_name REMOVE what_to_remove
Removes something from the specific column.
Syntax:
```sql
ALTER TABLE table_name MOFIY COLUMN column_name REMOVE removing_part
ALTER TABLE table_name MODIFY column_name REMOVE removing_part
```
**Example**
......@@ -144,11 +144,10 @@ Result
```
## See Also (Optional)
Links to related topics as a list.
## See Also
- [link](#)
- More about [ALTER](../../sql-reference/statements/alter/#query_language_queries_alter).
- More about [MODIFY column](../../sql-reference/statements/alter/column/#alter_modify-column).
Changing the column type is the only complex action – it changes the contents of files with data. For large tables, this may take a long time.
......
......@@ -3,33 +3,30 @@ toc_priority: 44
toc_title: TTL
---
### Manipulations with Table TTL {#manipulations-with-table-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
ALTER TABLE table_name MODIFY TTL ttl_expression;
```
# ALTER TABLE REMOVE TTL
## ALTER TABLE REMOVE TTL
Removes ttl-property from the column.
Removes ttl-property from the specified column.
Syntax:
```sql
ALTER TABLE table_name REMOVE TTL
Syntax of the statement.
ALTER TABLE table_name MODIFY column_name REMOVE TTL
```
ALTER TABLE r_no_prop_table MODIFY COLUMN some_column REMOVE TTL;
**Example**
Request
```sql
ALTER TABLE r_no_prop_table MODIFY COLUMN some_column REMOVE TTL;
```
Result
......@@ -38,8 +35,7 @@ Result
```
## See Also (Optional)
Links to related topics as a list.
### See Also
- [link](#)
- More about the [TTL-expression](../../sql-reference/statements/create/table/#ttl-expression).
- Modify column [with TTL](../../sql-reference/statements/alter/column/#alter_modify-column).
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册