From f357d36e9fb82b4dce6719b103138e53704fd375 Mon Sep 17 00:00:00 2001 From: Huaxin Gao Date: Thu, 30 Apr 2020 21:15:51 -0700 Subject: [PATCH] rebase --- docs/sql-ref-syntax-aux-show-columns.md | 42 +++++++++++------------ docs/sql-ref-syntax-ddl-truncate-table.md | 32 ++++++++--------- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/docs/sql-ref-syntax-aux-show-columns.md b/docs/sql-ref-syntax-aux-show-columns.md index c8c90a9d343e7..7229bba23d2bf 100644 --- a/docs/sql-ref-syntax-aux-show-columns.md +++ b/docs/sql-ref-syntax-aux-show-columns.md @@ -62,33 +62,33 @@ CREATE TABLE customer( -- List the columns of `customer` table in current database. SHOW COLUMNS IN customer; - +---------+ - | col_name| - +---------+ - | cust_cd| - | name| - |cust_addr| - +---------+ ++---------+ +| col_name| ++---------+ +| cust_cd| +| name| +|cust_addr| ++---------+ -- List the columns of `customer` table in `salesdb` database. SHOW COLUMNS IN salesdb.customer; - +---------+ - | col_name| - +---------+ - | cust_cd| - | name| - |cust_addr| - +---------+ ++---------+ +| col_name| ++---------+ +| cust_cd| +| name| +|cust_addr| ++---------+ -- List the columns of `customer` table in `salesdb` database SHOW COLUMNS IN customer IN salesdb; - +---------+ - | col_name| - +---------+ - | cust_cd| - | name| - |cust_addr| - +---------+ ++---------+ +| col_name| ++---------+ +| cust_cd| +| name| +|cust_addr| ++---------+ ``` ### Related Statements diff --git a/docs/sql-ref-syntax-ddl-truncate-table.md b/docs/sql-ref-syntax-ddl-truncate-table.md index e2d1834302776..820f439f97a4b 100644 --- a/docs/sql-ref-syntax-ddl-truncate-table.md +++ b/docs/sql-ref-syntax-ddl-truncate-table.md @@ -62,33 +62,33 @@ TRUNCATE TABLE table_identifier [ partition_spec ] CREATE TABLE Student (name STRING, rollno INT) PARTITIONED BY (age INT); SELECT * FROM Student; - +----+------+---+ - |name|rollno|age| - +----+------+---+ - | ABC| 1| 10| - | DEF| 2| 10| - | XYZ| 3| 12| - +----+------+---+ ++----+------+---+ +|name|rollno|age| ++----+------+---+ +| ABC| 1| 10| +| DEF| 2| 10| +| XYZ| 3| 12| ++----+------+---+ -- Removes all rows from the table in the partition specified TRUNCATE TABLE Student partition(age=10); -- After truncate execution, records belonging to partition age=10 are removed SELECT * FROM Student; - +----+------+---+ - |name|rollno|age| - +----+------+---+ - | XYZ| 3| 12| - +----+------+---+ ++----+------+---+ +|name|rollno|age| ++----+------+---+ +| XYZ| 3| 12| ++----+------+---+ -- Removes all rows from the table from all partitions TRUNCATE TABLE Student; SELECT * FROM Student; - +----+------+---+ - |name|rollno|age| - +----+------+---+ - +----+------+---+ ++----+------+---+ +|name|rollno|age| ++----+------+---+ ++----+------+---+ {% endhighlight %} ### Related Statements