In which column of which DB2 catalog would you find the
length of the rows for all tables?

Answers were Sorted based on User's Feedback



In which column of which DB2 catalog would you find the length of the rows for all tables?..

Answer / daphne

I assume that you mean "Column length" (Field length) for
all the fields of all the tables.

This can be found in SYSIBM.SYSCOLUMNS. The column name is
LENGTH.

If you want to find the column lengths of a particular
table then the query would be

Select NAME, LENGHT from SYSIBM.SYSCOLUMS where TBNAME =
<tablename>

Is This Answer Correct ?    1 Yes 0 No

In which column of which DB2 catalog would you find the length of the rows for all tables?..

Answer / vat

'RECLENGTH' column of SYSIBM.SYSTABLES would have the
record/row length of the table.

It's format: 8 + n + l where
8 accounts for 6 header bytes and 2 ID map entry bytes
n = 0 if there is no edit proc otherwise 10
l = Sum of max. col lengths (Add 1 byte for Null indicator
for nullable columns, 2 bytes for Varchar columns, 4 bytes
for LOB column)

and, RECLENGTH is 0 for auxilary tables, views and aliases

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More DB2 Interview Questions

what is parm utility

2 Answers   IBM,


How is a typical db2 batch pgm executed?

0 Answers  


What is cobol db2?

0 Answers  


What is meant by repeatable read?

4 Answers  


I have a table which has thousand of records i want to fetch only record num 100 to record num 200. Write a query that satisfies this criteria.(Cant use any keys) Anyone please reply ASAP!

17 Answers   KNIT, Tech Mahindra,






When is the results table for the query in a DECLARE CURSOR statement created?

5 Answers  


AGGREGATE function support by DB2. A) SUM & AVG B) SUM, MIN & AVG C) SUM, MAX, AVG , MIN &COUNT D) NONE

2 Answers   Accenture,


What is the role of the data page in the db2 database?

0 Answers  


Which is faster delete or truncate?

0 Answers  


What does CURRENTDATA option in bind indicate

1 Answers   IBM,


Explain the function done by data manager?

0 Answers  


What is CHECK PENDING ?

5 Answers  


Categories