[英]find the table size on IBM netezza sql database from Aginity workbench on win 7
I need to find a table size on IBM netezza sql database from Aginity workbench on win 7. 我需要在win 7上从Aginity workbench在IBM netezza sql数据库中找到一个表大小。
I used this 我用过这个
SELECT * FROM _V_TABLE
where tablename = 'my_table_name'
But, no information about table size. 但是,没有关于表大小的信息。
I right-clicked the table name in Aginity, but, nothing came out. 我在Aginity中右键单击了表名,但是没有任何结果。
Any help would be appreciated. 任何帮助,将不胜感激。
thanks 谢谢
Try this query. 试试这个查询。
select used_bytes/pow(1024,3) as used_gb, *
from _v_table_storage_stat
where tablename = 'my_table_name'
In Aginity (v2.1.181.6948), right click on your database. 在Aginity(v2.1.181.6948)中,右键单击您的数据库。 Select 'Show Tables Size'. 选择“显示表格大小”。 The new window that appears will have table names, owner, created, bytes allocated, bytes used, etc. 出现的新窗口将包含表名,所有者,已创建,已分配的字节数,使用的字节数等。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.