morningman commented on a change in pull request #3676:
URL: https://github.com/apache/incubator-doris/pull/3676#discussion_r429729703



##########
File path: docs/zh-CN/sql-reference/sql-statements/Data Manipulation/SHOW 
DATA.md
##########
@@ -25,23 +25,65 @@ under the License.
 -->
 
 # SHOW DATA
+
 ## description
-    该语句用于展示数据量和副本数量
-    语法:
-        SHOW DATA [FROM db_name[.table_name]];
-        
-    说明:
-        1. 如果不指定 FROM 子句,使用展示当前 db 下细分到各个 table 的数据量和副本数量
-        2. 如果指定 FROM 子句,则展示 table 下细分到各个 index 的数据量和副本数量
-        3. 如果想查看各个 Partition 的大小,请参阅 help show partitions
+
+该语句用于展示数据量、副本数量已经统计行数。
+
+语法:
+
+```
+SHOW DATA [FROM db_name[.table_name]];
+```
+    
+说明:
+
+1. 如果不指定 FROM 子句,则展示当前 db 下细分到各个 table 
的数据量和副本数量。其中数据量为所有副本的总数据量。而副本数量为表的所有分区以及所有物化视图的副本数量。
+
+2. 如果指定 FROM 子句,则展示 table 
下细分到各个物化视图的数据量、副本数量和统计行数。其中数据量为所有副本的总数据量。副本数量为对应物化视图的所有分区的副本数量。统计行数为对应物化视图的所有分区统计行数。
+
+3. 统计行数时,以多个副本中,行数最大的那个副本为准。
+
+4. 结果集中的 `Total` 行表示汇总行。`Quota` 行表示当前数据库设置的配额。`Left` 行表示剩余配额。
+
+5. 如果想查看各个 Partition 的大小,请参阅 `help show partitions`。
 
 ## example
-    1. 展示默认 db 的各个 table 的数据量,副本数量,汇总数据量和汇总副本数量。
-        SHOW DATA;
-        
-    2. 展示指定 db 的下指定表的细分数据量和副本数量
-        SHOW DATA FROM example_db.table_name;
+
+1. 展示默认 db 的各个 table 的数据量,副本数量,汇总数据量和汇总副本数量。
+    
+    ```
+    SHOW DATA;
+    ```
+    
+    ```
+    +-----------+-------------+--------------+
+    | TableName | Size        | ReplicaCount |
+    +-----------+-------------+--------------+
+    | tbl1      | 900.000 B   | 6            |
+    | tbl2      | 500.000 B   | 3            |
+    | Total     | 1.400 KB    | 9            |
+    | Quota     | 1024.000 GB | 1073741824   |
+    | Left      | 1021.921 GB | 1073741815   |
+    +-----------+-------------+--------------+
+    ```
+    
+2. 展示指定 db 的下指定表的细分数据量和副本数量

Review comment:
       Done




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to