select count(*) from syscat.tables where tabschema='GP'
GP為某用戶模式。
當然也可以用
select count(*) from syscat.tables where tabschema='GP'
查出所有表的數量。
再查出有多少張系統表,就是在SYSIBM、SYSTOOLS下的表數目。相減就可以了。
我用的是DB2 V9.7。
select count(*) from syscat.tables where tabschema='GP'
GP為某用戶模式。
當然也可以用
select count(*) from syscat.tables where tabschema='GP'
查出所有表的數量。
再查出有多少張系統表,就是在SYSIBM、SYSTOOLS下的表數目。相減就可以了。
我用的是DB2 V9.7。