Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"label":"Catalog","position":9}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Catalog
---
| 命令 | 描述 |
|---------|-------------|
| [USE CATALOG](use-catalog.md) | 切换当前 catalog |
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: USE CATALOG
sidebar_position: 1
---

为当前会话切换 catalog。

## 语法

```sql
USE CATALOG <catalog_name>
```
1 change: 1 addition & 0 deletions docs/cn/sql-reference/10-sql-commands/00-ddl/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ title: DDL(Data Definition Language)命令

| 组件 | 描述 |
|-----------|-------------|
| **[Catalog](09-catalog/index.md)** | 切换当前 catalog |
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the desc is wrong.

| **[数据库](00-database/index.md)** | 创建、修改和删除数据库 |
| **[表](01-table/index.md)** | 创建、修改和管理表 |
| **[表版本管理 (Table Versioning)](21-table-versioning/index.md)** | 创建命名快照标签用于时间回溯 |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"label":"Catalog","position":9}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Catalog
---
| Command | Description |
|---------|-------------|
| [USE CATALOG](use-catalog.md) | Switches the current catalog |
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: USE CATALOG
sidebar_position: 1
---

Switches the current catalog for the session.

## Syntax

```sql
USE CATALOG <catalog_name>
```
1 change: 1 addition & 0 deletions docs/en/sql-reference/10-sql-commands/00-ddl/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ These topics provide reference information for the DDL (Data Definition Language

| Component | Description |
|-----------|-------------|
| **[Catalog](09-catalog/index.md)** | Switch the current catalog |
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the desc is wrong.

| **[Database](00-database/index.md)** | Create, alter, and drop databases |
| **[Table](01-table/index.md)** | Create, alter, and manage tables |
| **[Table Versioning](21-table-versioning/index.md)** | Create named snapshot tags for time travel |
Expand Down
Loading