From 44a877932d51514823517e482b5d355aa8aeca95 Mon Sep 17 00:00:00 2001 From: Zhengguo Yang Date: Wed, 28 Oct 2020 10:40:53 +0800 Subject: [PATCH] fix docs (#4801) --- .../alter-table/alter-table-replace-table.md | 2 +- .../alter-table/alter-table-replace-table.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/administrator-guide/alter-table/alter-table-replace-table.md b/docs/en/administrator-guide/alter-table/alter-table-replace-table.md index c7d644585d..15d3fe0fab 100644 --- a/docs/en/administrator-guide/alter-table/alter-table-replace-table.md +++ b/docs/en/administrator-guide/alter-table/alter-table-replace-table.md @@ -42,7 +42,7 @@ Replace table `tbl1` with table `tbl2`. If the `swap` parameter is `true`, after replacement, the data in the table named `tbl1` is the data in the original `tbl2` table. The data in the table named `tbl2` is the data in the original table `tbl1`. That is, the data of the two tables are interchanged. -If the `swap` parameter is `true`, after replacement, the data in the table named `tbl1` is the data in the original `tbl2` table. The table named `tbl2` is dropped. +If the `swap` parameter is `false`, after replacement, the data in the table named `tbl1` is the data in the original `tbl2` table. The table named `tbl2` is dropped. ## Principle diff --git a/docs/zh-CN/administrator-guide/alter-table/alter-table-replace-table.md b/docs/zh-CN/administrator-guide/alter-table/alter-table-replace-table.md index 4188dc152d..d1e65c9312 100644 --- a/docs/zh-CN/administrator-guide/alter-table/alter-table-replace-table.md +++ b/docs/zh-CN/administrator-guide/alter-table/alter-table-replace-table.md @@ -42,7 +42,7 @@ ALTER TABLE [db.]tbl1 REPLACE WITH tbl2 如果 `swap` 参数为 `true`,则替换后,名称为 `tbl1` 表中的数据为原 `tbl2` 表中的数据。而名称为 `tbl2` 表中的数据为原 `tbl1` 表中的数据。即两张表数据发生了互换。 -如果 `swap` 参数为 `true`,则替换后,名称为 `tbl1` 表中的数据为原 `tbl2` 表中的数据。而名称为 `tbl2` 表被删除。 +如果 `swap` 参数为 `false`,则替换后,名称为 `tbl1` 表中的数据为原 `tbl2` 表中的数据。而名称为 `tbl2` 表被删除。 ## 原理