From 9ca7f4d8bd6c1834f82d840c174b229ef7297a58 Mon Sep 17 00:00:00 2001 From: Lee Date: Fri, 27 Sep 2024 13:48:27 +0800 Subject: [PATCH] Optimize database creation and management documentation in chapter 5 --- docs/zh/sql/05/ChuangJian-GuanLI.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/zh/sql/05/ChuangJian-GuanLI.md b/docs/zh/sql/05/ChuangJian-GuanLI.md index 2ea78ba..97897a3 100644 --- a/docs/zh/sql/05/ChuangJian-GuanLI.md +++ b/docs/zh/sql/05/ChuangJian-GuanLI.md @@ -98,4 +98,13 @@ ADD FILE ); ``` -## \ No newline at end of file +### 分离数据库 +```sql +exec sp_detach_db myDatabase +``` + +### 附加数据库 + +```sql +exec sp_attach_db myDatabase +```