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
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 |
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 |
What does sqlcabc has?
pls explain the precompilation process of cobol-db2 pgm
What Utility is used to migrate DB2 from one release to the next?
What are the three DB2 date and time data types and their associated functions?
How do I connect my db2 database to ibm?
How to solve S0C7 abend with out using DISPlay in 10 mins?
What are the different methods of accessing db2 from tso? How is the connection established between TSO & DB2?
Is it possible using max on a char column?
What is iseries database?
I have a subprogram B calling from mainprogram A.I have opened a cursor in A ,Can i fetch the same cursor in subprogram B , If yes , Please explain the reason?
What is a buffer in memory?
What is the difference between bind and rebind in db2?