Skip to content

Commit

Permalink
docs: apply cr
Browse files Browse the repository at this point in the history
  • Loading branch information
CookiePieWw committed Nov 21, 2024
1 parent e0b58b0 commit 1462238
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
12 changes: 6 additions & 6 deletions docs/reference/sql/alter.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

## ALTER DATABASE

`ALTER DATABASE` statements can be used to modify the options of databases.

### Syntax

```sql
Expand All @@ -18,15 +20,13 @@ ALTER DATABASE db
]
```

### Examples

#### Modify database options

`ALTER DATABASE` statements can be used to modify the options of databases.

Currently following options are supported:
- `ttl`: the default retention time of data in database.

### Examples

#### Modify default retention time of data in database

Change the default retention time of data in the database to 1 day:

```sql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

## ALTER DATABASE


`ALTER DATABASE` 语句可以用来修改数据库的选项。

### 语法

```sql
Expand All @@ -23,15 +26,13 @@ ALTER TABLE [db.]table
]
```

### 示例

#### 修改数据库选项

`ALTER DATABASE` 语句可以用来修改数据库的选项。

当前支持修改以下数据库选项:
- `ttl`: 数据库中数据的默认保留时间。

### 示例

#### 修改数据库中数据的默认保留时间

修改数据库中数据的默认保留时间为 1 天:

```sql
Expand Down

0 comments on commit 1462238

Please sign in to comment.