Svenson's  Bulletin Board Forum Index Svenson's Bulletin Board
Bulletin Board for boat building and model airplane building enthusiasts.
 
AlbumAlbum   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

select table statistics

 
Post new topic   Reply to topic    Svenson's Bulletin Board Forum Index -> DB2
View previous topic :: View next topic  
Author Message
craig
Site Admin


Joined: 19 Feb 2006
Posts: 40

PostPosted: Wed Aug 02, 2006 7:17 am    Post subject: select table statistics Reply with quote

select * from (select RTRIM(TABSCHEMA) TABSCHEMA, RTRIM(TABNAME) TABNAME, TYPE, RTRIM(TBSPACE) TBSPACE, case STATUS when 'N' then 'No' when 'C' then 'Yes' end STATUS, CARD, NPAGES, COLCOUNT, ROWTYPESCHEMA, ROWTYPENAME, RTRIM(property) PROPERTY, CHAR(DATE(CREATE_TIME), ISO) CONCAT ' ' CONCAT CHAR(TIME(CREATE_TIME), ISO) CREATE_DATETIME, CHAR(DATE(STATS_TIME), ISO) CONCAT ' ' CONCAT CHAR(TIME(STATS_TIME), ISO) STATS_DATETIME from SYSCAT.TABLES order by TABSCHEMA, TABNAME) TABLES where TYPE in ('S', 'T', 'H', 'U') for read only
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Svenson's Bulletin Board Forum Index -> DB2 All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group