EmmyMiao87 edited a comment on issue #6370:
URL: 
https://github.com/apache/incubator-doris/issues/6370#issuecomment-891860595


   # Show statistics
   
   + Show table statistics
   
       If table_name is filled in, the information of a single table will be 
displayed; if not, the information of all tables in the entire library will be 
displayed.  
   
     ```sql
     show table stats {db_name.table_name };
     ```
   
        | table_name | row_count | data_size |
        | :--------- | --------- | --------- |
        | store      | 100000    | 1MB       |
   
   + Show column statistics
   
     ```sql
     show column stats table_name;
     ```
   
     | column_name | num_distinct_value | min  | max  | num_nulls | avg_col_len 
| max_col_len |
     | ----------- | ------------------ | ---- | ---- | --------- | ----------- 
| --- |
     | s_store_sk  | 10                 | 1    | 100  | 0         | 4           
|4|
     | s_store_id  | -1                 | -1   | -1   | -1        | 4           
|4|
   
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to