Skip to content

Commit 22280d5

Browse files
committed
docs: clarify quoting for hyphenated warehouse names
1 parent 2e156ca commit 22280d5

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

docs/cn/sql-reference/10-sql-commands/00-ddl/19-warehouse/create-warehouse.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ CREATE WAREHOUSE <warehouse_name>
1515
WITH WAREHOUSE_SIZE = { XSMALL | SMALL | MEDIUM | LARGE | XLARGE | XXLARGE | XXXLARGE }
1616
```
1717

18+
提示:如果 `<warehouse_name>` 包含 `-`,请用反引号或双引号包裹。
19+
1820
## 示例
1921

2022
此示例创建一个 `XSMALL` 规格的计算集群:

docs/cn/sql-reference/10-sql-commands/00-ddl/19-warehouse/drop-warehouse.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import FunctionDescription from '@site/src/components/FunctionDescription';
1313
DROP WAREHOUSE <warehouse_name>
1414
```
1515

16+
提示:如果 `<warehouse_name>` 包含 `-`,请用反引号或双引号包裹。
17+
1618
## 示例
1719

1820
此示例删除 `testwarehouse` 计算集群:

docs/cn/sql-reference/10-sql-commands/00-ddl/19-warehouse/use-warehouse.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import FunctionDescription from '@site/src/components/FunctionDescription';
1313
USE WAREHOUSE <warehouse_name>
1414
```
1515

16+
提示:如果 `<warehouse_name>` 包含 `-`,请用反引号或双引号包裹。
17+
1618
## 示例
1719

1820
此示例将 `testwarehouse` 设置为当前使用的计算集群:

docs/en/sql-reference/10-sql-commands/00-ddl/19-warehouse/create-warehouse.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ CREATE WAREHOUSE <warehouse_name>
1515
WITH WAREHOUSE_SIZE = { XSMALL | SMALL | MEDIUM | LARGE | XLARGE | XXLARGE | XXXLARGE }
1616
```
1717

18+
Tip: If `<warehouse_name>` contains `-`, quote it with backticks or double quotes.
19+
1820
## Examples
1921

2022
This example creates an `XSMALL` warehouse:

docs/en/sql-reference/10-sql-commands/00-ddl/19-warehouse/drop-warehouse.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Removes the specified warehouse and frees up the resources associated with it.
1313
DROP WAREHOUSE <warehouse_name>
1414
```
1515

16+
Tip: If `<warehouse_name>` contains `-`, quote it with backticks or double quotes.
17+
1618
## Examples
1719

1820
This example removes the `testwarehouse` warehouse:

docs/en/sql-reference/10-sql-commands/00-ddl/19-warehouse/use-warehouse.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Sets the active warehouse for executing queries.
1313
USE WAREHOUSE <warehouse_name>
1414
```
1515

16+
Tip: If `<warehouse_name>` contains `-`, quote it with backticks or double quotes.
17+
1618
## Examples
1719

1820
This example sets `testwarehouse` as the active warehouse:

0 commit comments

Comments
 (0)