How to see the structure of db2 table??

Answers were Sorted based on User's Feedback



How to see the structure of db2 table??..

Answer / kc

SELECT colName,TypeName FROM SYSCAT.COLUMNS WHERE TABSCHEMA = <database> AND TABNAME =<tablename>

Is This Answer Correct ?    0 Yes 0 No

How to see the structure of db2 table??..

Answer / s

Select the catalog table SYSIBM.SYCOLUMNS for a particular
table.

Is This Answer Correct ?    21 Yes 26 No

How to see the structure of db2 table??..

Answer / prem

Use the Describe command

eg: Describe table <tablename>

Is This Answer Correct ?    38 Yes 47 No

How to see the structure of db2 table??..

Answer / ram prajapati

select * from SYSIBM.SYCOLUMNS where tbname='tablename';
run this querry... or
go to dclgen .... option m.11.2 in the ispf command prompt n
see the structure directly in any mentioned ps file

Is This Answer Correct ?    11 Yes 20 No

Post New Answer

More DB2 Interview Questions

What is PRIME TABLE and what are the uses of it

1 Answers  


How would the varchar column remarks defined?

0 Answers  


Can we use select query in a loop to fetch multiple rows in a COBOL PROGRAM? If so, what is the advantage of cursor?

1 Answers   UST,


I have a DB2 table which has 1000 rows.after udatingg first 110 rows, my job abends. Now what I have to do if I want to restart the job next time so that it should start updating from 111th row (without updating first 110 rows again).

10 Answers   Cap Gemini, Wipro,


What if we fail to give values in columns declared as NOT NULL ?

3 Answers   Cap Gemini,






Which are the db2 tools to protect integrity of the database?

0 Answers   IBM,


what is the role of the cursor in db2?

0 Answers  


What is a page in db2?

0 Answers  


Mention the length of physical storage of the given data types of db2 – date, timestamp, time

0 Answers  


How to resolve -504 sql code in DB2?

2 Answers   Cap Gemini,


What is ibm db2 client?

0 Answers  


if one db2 pgm calls another db2 pgm. how many plans do we need. what r the steps involved..

4 Answers   IBM,


Categories