ADMINTABINFO administrative view and ADMIN_GET_TAB_INFO table function - Retrieve size and state information for tables Example 1: Retrieve size and state information for all tables SELECT * FROM SYSIBMADM.ADMINTABINFO Example 2: Retrieve size and state information for the table DBUSER1.EMPLOYEE. SELECT * FROM TABLE (SYSPROC.ADMIN_GET_TAB_INFO('DBUSER1', 'EMPLOYEE')) AS T 以上参考 http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com.ibm.db2.udb.admin.doc/doc/r0022024.htm DATA_OBJECT_L_SIZE DATA_OBJECT_P_SIZE这两个字段值为你需要的信息。 第一个示例查询时可以带上模式名或者表名来去除系统表的信息
DB2 查看表数据大小
最新推荐文章于 2023-12-21 17:36:47 发布