Dirpath is a string that represents the path to the directory,
Dirnames is a list that contains the names of all subdirectories under Dirpath.
Filenames is a list that contains the name of a non-directory file.
These names do not contain path information, and you need to use Os.path.join (Dirpath, name) if you need to get the full path.
Color 38 Full Repair operation version +h5 Adaptive mobile version
<br>
To view the capacity size of a table
mysql> use INFORMATION_SCHEMA;
Select Data_length,index_length
From tables where
Table_schema= ' Test '
and table_name = ' test_table ';
#字节转MB
Select Concat (Round (sum (data_length/1024/1024), 2), ' MB ') as DATA_SIZE_MB,
Concat (Round (sum (index_length/1024/1024), 2), ' MB ') as INDEX_SIZE_MB
From tables where
Table_schema= ' Test '
and table_name = ' test_table ';
To view the capacity size of a library
Select Table_schema, concat (Truncate (SUM (data_length)/1024/1024,2), ' MB ') as Data_size,
Concat (Truncate (SUM (index_length)/1024/1024,2), ' MB ') as Index_size
From Information_schema.tables
GROUP BY Table_schema
ORDER BY data_length Desc;
Color 38 Full Repair operation version +h5 Adaptive mobile version