get mean/max size of every column
Also you can analyze table and fetch stats for column.
Analyze table:
ANALYZE TABLE tablename COMPUTE STATISTICS FOR COLUMNS;
Use DESCRIBE FORMATTED:
desc formatted tablename column_name
It will print these figures:
data_type, min, max, num_nulls, distinct_count, avg_col_len, max_col_len, num_trues, num_falses
Unfortunately, it works for single column at a time and you need to repeat describe command to get all columns stats.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…