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 to create db2 table in mainframe?

0 Answers  


How do I delete a table in database?

0 Answers  


How does the processing of a correlated subquery differ from a non correlated subquery?

1 Answers  


What will the FREE command do to a plan?

2 Answers  


How to insert more than one record using insert?

7 Answers   Atos Origin, IBM,


what are extents?

5 Answers  


What is the format (internal layout) of ?TIMESTAMP??

1 Answers  


What is role in db2?

0 Answers  


How to test SQL -911 error while developing COB-DB2 program

1 Answers   Satyam,


Hello All, We have requirment to Replace BMC Db2 Load product thru CA FAST LOADPlus product. Do anyone have JCL to for FAST LOADPLUS and what all are thing need to take in consideration.

0 Answers   IBM,


i hav created a program and moved to production but failed to create the table which is been used in the program. the program shows error as soon as it is moved or installed in production or shows error during its runtime. what is the sqlcode for this error

3 Answers   UST,


My sql statement select avg(salary) from emp yields inaccurate results. Why?

0 Answers  


Categories