How to know the primary key of a table without defining the
primary key in the table?

Answer Posted / ambika

u can use sysibm.syskeys to view the primary key of a
particular table provided if u have declared any attribute
as NOT NULL. if there are multiple columns of such kind u
the above procedure wont help.

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the result of open cursor statement?

638


What is lock escalation in db2?

574


What is a page in db2?

611


What is meant by union and union all?

589


What is db2 bind?

640






How is a typical db2 batch pgm executed?

642


List out the three types of page locks that can be held.

689


Mention the downsides of page level lock.

711


What does db2 stand for?

598


What is db2?

743


Outputs of explain are with matchcols = 0. What does this signify?

619


Mention the way of highlighting as well as putting a cursor to use in a cobol program.

628


What is check constraint. Explain with example.

650


What is dbrm in db2 database?

591


Which command is used to remove all rows from a table?

553