-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5270cc3
commit 4aa222e
Showing
5 changed files
with
49 additions
and
5 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
docs/cn/sql-reference/10-sql-commands/00-ddl/00-database/ddl-create-database.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: CREATE DATABASE | ||
title: ๅๅปบๆฐๆฎๅบ | ||
sidebar_position: 1 | ||
--- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
docs/cn/sql-reference/10-sql-commands/00-ddl/00-database/show-drop-databases.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 โ | ||
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters