How to know the primary key of a table without defining the
primary key in the table?
Answer Posted / mani
Execute:
SELECT TBCREATOR, TBNAME, NAME, KEYSEQ
FROM SYSIBM.SYSCOLUMNS
WHERE TBCREATOR = 'creater id'
AND TBNAME = 'table-name'
AND KEYSEQ > 0
ORDER BY KEYSEQ
a nonzero value for KEYSEQ indicates the place of a column in
the primary key.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Mention the way of highlighting as well as putting a cursor to use in a cobol program.
What os does db2 run on?
Can we delete records from view?
What is ibm db2 database?
What is image copy in db2?
Can we insert update delete in view?
What does runstats do in db2?
Explain the contention situations caused by locks?
How is deadlock resolved?
What is declare cursor?
When do you specify the isolation level?
Explain in brief how does db2 determine what lock-size to use?
What is bind package and plan in db2?
Hi, i would like to start a new carrier in DB2 DBA.Which and what all step should i have to take..?
Which components manage deadlocks in db2?