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

How does DB2 store NULL physically?

2 Answers  


what is the responsibility of the construction superintendent

0 Answers   Almco,


I have a table(product),It contain fields(productname,cost). I want to retrieve the product name ,which cost is second maximum in the table?

10 Answers   Fidelity,


What is FREEPAGE and PCTFREE in TABLESPACE creation?

1 Answers  


What are the uses of db2 optimizer?

0 Answers  






what is the use of bind parameter, Replace?

5 Answers   IBM,


When Can you be sure that a query will return only one row?

4 Answers   IBM,


database DSNDB01 means a.db2 catalog b.db2 directory c.BSDS d.active logs answer with reason please

1 Answers  


What is a db2 package?

0 Answers  


My SQL is not performing well. Describe how will you fine tune it?

1 Answers   Accenture,


What is the difference between nvl and coalesce?

0 Answers  


Are view updateable?

0 Answers  


Categories