Skip to content

Commit e42ac84

Browse files
sundy-lib41sh
andauthored
docs: add DROP DICTIONARY SQL reference (#3159)
* docs: add drop dictionary sql reference * fix --------- Co-authored-by: baishen <baishen2009@gmail.com>
1 parent 891a74b commit e42ac84

File tree

4 files changed

+62
-0
lines changed

4 files changed

+62
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: DROP DICTIONARY
3+
sidebar_position: 2
4+
---
5+
6+
删除一个字典。
7+
8+
## 语法
9+
10+
```sql
11+
DROP DICTIONARY [ IF EXISTS ] [ <catalog_name>. ][ <database_name>. ]<dictionary_name>
12+
```
13+
14+
## 参数
15+
16+
| 参数 | 说明 |
17+
|-----------|-------------|
18+
| `IF EXISTS` | 可选。如果字典不存在,则忽略错误。 |
19+
| `<dictionary_name>` | 字典名称。可以带上 catalog 和 database 限定。 |
20+
21+
## 示例
22+
23+
```sql
24+
DROP DICTIONARY user_info;
25+
```
26+
27+
```sql
28+
DROP DICTIONARY IF EXISTS default.user_info;
29+
```

docs/cn/sql-reference/10-sql-commands/00-ddl/17-dictionary/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ Dictionary 提供了一种基于键值对的方法,用于从各种外部数据
99
| 命令 | 描述 |
1010
|---------|-------------|
1111
| [CREATE DICTIONARY](create-dictionary.md) | 创建字典 |
12+
| [DROP DICTIONARY](drop-dictionary.md) | 删除字典 |
13+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: DROP DICTIONARY
3+
sidebar_position: 2
4+
---
5+
6+
Deletes a dictionary.
7+
8+
## Syntax
9+
10+
```sql
11+
DROP DICTIONARY [ IF EXISTS ] [ <catalog_name>. ][ <database_name>. ]<dictionary_name>
12+
```
13+
14+
## Parameters
15+
16+
| Parameter | Description |
17+
|-----------|-------------|
18+
| `IF EXISTS` | Optional. Suppresses the error if the dictionary does not exist. |
19+
| `<dictionary_name>` | The dictionary name. You can qualify it with catalog and database names. |
20+
21+
## Examples
22+
23+
```sql
24+
DROP DICTIONARY user_info;
25+
```
26+
27+
```sql
28+
DROP DICTIONARY IF EXISTS default.user_info;
29+
```

docs/en/sql-reference/10-sql-commands/00-ddl/17-dictionary/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ Dictionary provides a key-value approach for reading data from various external
99
| Command | Description |
1010
|---------|-------------|
1111
| [CREATE DICTIONARY](create-dictionary.md) | Creates a dictionary |
12+
| [DROP DICTIONARY](drop-dictionary.md) | Deletes a dictionary |
13+

0 commit comments

Comments
 (0)