Skip to content

Commit

Permalink
๐Ÿ’ฌGenerate LLM translations
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and Chasen-Zhang committed Nov 18, 2024
1 parent 5270cc3 commit 4aa222e
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: CREATE DATABASE
title: ๅˆ›ๅปบๆ•ฐๆฎๅบ“
sidebar_position: 1
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: DROP DATABASE
---

ๅˆ ้™คไธ€ไธชๆ•ฐๆฎๅบ“ใ€‚
ๅˆ ้™คๆ•ฐๆฎๅบ“ใ€‚

ๅฆ่ฏทๅ‚้˜…๏ผš[UNDROP DATABASE](undrop-database.md)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ SHOW [ FULL ] DATABASES
| ๅ‚ๆ•ฐ | ๆ่ฟฐ |
|-----------|------------------------------------------------------------------------------------------------------------------------------|
| FULL | ๅˆ—ๅ‡บๅธฆๆœ‰้™„ๅŠ ไฟกๆฏ็š„็ป“ๆžœใ€‚ๆ›ดๅคš่ฏฆๆƒ…่ฏทๅ‚่ง[็คบไพ‹](#examples)ใ€‚ |
| LIKE | ้€š่ฟ‡ๅŒบๅˆ†ๅคงๅฐๅ†™็š„ๆจกๅผๅŒน้…่ฟ‡ๆปค็ป“ๆžœๅ็งฐใ€‚ |
| LIKE | ไฝฟ็”จๅŒบๅˆ†ๅคงๅฐๅ†™็š„ๆจกๅผๅŒน้…่ฟ‡ๆปค็ป“ๆžœๅ็งฐใ€‚ |
| WHERE | ไฝฟ็”จWHEREๅญๅฅไธญ็š„่กจ่พพๅผ่ฟ‡ๆปค็ป“ๆžœใ€‚ |

## ็คบไพ‹
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
title: SHOW DROP DATABASES
---
import FunctionDescription from '@site/src/components/FunctionDescription';

<FunctionDescription description="ๅผ•ๅ…ฅๆˆ–ๆ›ดๆ–ฐ: v1.2.658"/>

ๅˆ—ๅ‡บๆ‰€ๆœ‰ๆ•ฐๆฎๅบ“ๅŠๅ…ถๅˆ ้™คๆ—ถ้—ดๆˆณ๏ผˆๅฆ‚ๆžœๅทฒ่ขซๅˆ ้™ค๏ผ‰๏ผŒๅ…่ฎธ็”จๆˆทๆŸฅ็œ‹ๅทฒๅˆ ้™ค็š„ๆ•ฐๆฎๅบ“ๅŠๅ…ถ่ฏฆ็ป†ไฟกๆฏใ€‚

- ๅชๆœ‰ๅœจๆ•ฐๆฎไฟ็•™ๆœŸๅ†…๏ผŒๅทฒๅˆ ้™ค็š„ๆ•ฐๆฎๅบ“ๆ‰่ƒฝ่ขซๆฃ€็ดขใ€‚
- ๅปบ่ฎฎไฝฟ็”จ็ฎก็†ๅ‘˜็”จๆˆท๏ผŒๅฆ‚ `root`ใ€‚ๅฆ‚ๆžœๆ‚จไฝฟ็”จ็š„ๆ˜ฏ Databend Cloud๏ผŒ่ฏทไฝฟ็”จๅ…ทๆœ‰ `account_admin` ่ง’่‰ฒ็š„็”จๆˆทๆฅๆŸฅ่ฏขๅทฒๅˆ ้™ค็š„ๆ•ฐๆฎๅบ“ใ€‚

ๅฆ่ฏทๅ‚้˜…: [system.databases_with_history](../../../00-sql-reference/20-system-tables/system-databases-with-history.md)

## ่ฏญๆณ•

```sql
SHOW DROP DATABASES
[ FROM <catalog> ]
[ LIKE '<pattern>' | WHERE <expr> ]
```

## ็คบไพ‹

```sql
-- ๅˆ›ๅปบไธ€ไธชๅไธบ my_db ็š„ๆ–ฐๆ•ฐๆฎๅบ“
CREATE DATABASE my_db;

-- ๅˆ ้™คๆ•ฐๆฎๅบ“ my_db
DROP DATABASE my_db;

-- ๅฆ‚ๆžœๆ•ฐๆฎๅบ“ๅทฒ่ขซๅˆ ้™ค๏ผŒdropped_on ๆ˜พ็คบๅˆ ้™คๆ—ถ้—ด๏ผ›
-- ๅฆ‚ๆžœๅฎƒไป็„ถๆดป่ทƒ๏ผŒdropped_on ไธบ NULLใ€‚
SHOW DROP DATABASES;

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ catalog โ”‚ name โ”‚ database_id โ”‚ dropped_on โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ default โ”‚ default โ”‚ 1 โ”‚ NULL โ”‚
โ”‚ default โ”‚ information_schema โ”‚ 4611686018427387906 โ”‚ NULL โ”‚
โ”‚ default โ”‚ my_db โ”‚ 114 โ”‚ 2024-11-15 02:44:46.207120 โ”‚
โ”‚ default โ”‚ system โ”‚ 4611686018427387905 โ”‚ NULL โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
```
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: UNDROP DATABASE
---

ๆขๅคๅทฒๅˆ ้™คๆ•ฐๆฎๅบ“็š„ๆœ€ๆ–ฐ็‰ˆๆœฌใ€‚่ฟ™ๅˆฉ็”จไบ†Databend็š„ๆ—ถ้—ดๅ›žๆบฏๅŠŸ่ƒฝ๏ผ›ๅทฒๅˆ ้™ค็š„ๅฏน่ฑกๅช่ƒฝๅœจไฟ็•™ๆœŸๅ†…๏ผˆ้ป˜่ฎคไธบ24ๅฐๆ—ถ๏ผ‰ๆขๅคใ€‚
ๆขๅคๅทฒๅˆ ้™คๆ•ฐๆฎๅบ“็š„ๆœ€ๆ–ฐ็‰ˆๆœฌใ€‚่ฟ™ๅˆฉ็”จไบ† Databend ็š„ๆ—ถ้—ดๅ›žๆบฏๅŠŸ่ƒฝ๏ผ›ๅทฒๅˆ ้™ค็š„ๅฏน่ฑกๅช่ƒฝๅœจไฟ็•™ๆœŸๅ†…๏ผˆ้ป˜่ฎคไธบ 24 ๅฐๆ—ถ๏ผ‰ๆขๅคใ€‚

ๅฆ่ฏทๅ‚้˜…๏ผš[DROP DATABASE](ddl-drop-database.md)

Expand All @@ -16,7 +16,7 @@ UNDROP DATABASE <database_name>

## ็คบไพ‹

ๆญค็คบไพ‹ๅˆ›ๅปบใ€ๅˆ ้™ค๏ผŒ็„ถๅŽๆขๅคๅไธบโ€œorders_2024โ€็š„ๆ•ฐๆฎๅบ“๏ผš
ๆญค็คบไพ‹ๅˆ›ๅปบใ€ๅˆ ้™ค็„ถๅŽๆขๅคๅไธบ "orders_2024" ็š„ๆ•ฐๆฎๅบ“๏ผš

```sql
root@localhost:8000/default> CREATE DATABASE orders_2024;
Expand Down

0 comments on commit 4aa222e

Please sign in to comment.