Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where could I find a table record lenght in the SYSIBM 1

Status
Not open for further replies.

AIXDB2DBA

MIS
Jan 24, 2005
9
US
Where could I find a table record lenght in the SYSIBM in catalogs? I look into systables and is no there.
 
I don't think that you can get the record length from syscat views. But you can get it by using
select sum(length) from syscat.columns where tabschema='<SOME_SCHEMA>' and tabname='<SOME_TABLE>'


Hope this helps
 
--for all tables
select tabname,sum(length)
from syscat.columns
where tabschema = '<schema-name>'
group by tabname
 
The results in the following query do not reflet the same record lenght displayed in Control Center, Estimate Statistics panel in UDB AIX. Why? How could I build a query that generate record lenght for every table?

select tabname,sum(length)
from syscat.columns
where tabschema = '<schema-name>'
group by tabname


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top