Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is null indicator in cobol db2?

1008


What types of tables are there in the db2 database?

1024


What is a collection in db2?

1002


What is the purpose of using commit?

1052


What is the result of open cursor statement?

1047


How do I copy a table in db2?

966


Explain in brief how does db2 determine what lock-size to use?

987


Suppose pgm A calling Pgm B .Pgm B has some Db2 program. at the time of compilation should plan and package will be created for both A and B or only B? What is the concept?

8183


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

1066


How to fetch the last row from the table in SQL (db2)?

1610


What do you mean by rollback?

951


When a COBOL-DB2 program in PRODUCTION is updating main tables and gone for long run, what have to do?

3543


Define check constraint.

1046


How can tablespace be moved to another dasd volume that is allocated for that tablespace?

1199


What is the difference between using bind () and rebind () methods of naming class?

1350