MySQL常见问题记录
不同文本字段大小
字段类型 | 字节 | 大小 |
---|---|---|
text | 65535 | 64KB |
longtext | 2147483647 | 2GB |
mediumtext | 16777215 | 16MB |
各表大小
select table_schema, table_name, concat(round(sum(DATA_LENGTH/1024/1024),2),'M') from information_schema.tables where table_schema = 'table_name' group by table_schema, table_name;