如何找到表的当前大小(在内存中)? [英] How to find current size (in memory) of table?

查看:87
本文介绍了如何找到表的当前大小(在内存中)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用engine = MEMORY指定的内存表.我可以运行什么命令来查找当前占用了多少空间?最大大小呢?

I have an in-memory table specified using engine=MEMORY. What command can I run to find out how much space it is currently taking? What about the maximum size?

推荐答案

SHOW TABLE STATUS LIKE 'tablename'\G

tablename是您要检查的表的名称.

Where tablename is the name of the table you want to check.

这篇关于如何找到表的当前大小(在内存中)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆