1. 程式人生 > >DB2 查看錶資料大小

DB2 查看錶資料大小

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這兩個欄位值為你需要的資訊。 第一個示例查詢時可以帶上模式名或者表名來去除系統表的資訊