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

Is db2 free?

1092


What is bind in db2?

1036


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

1105


How to find the number of rows in db2 tables?

1065


What is blu acceleration in db2?

1066


What os does db2 run on?

975


Mention the different locking levels that are available in db2.

1127


What is difference between alias and synonym in db2?

1138


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

1073


What is db2 connect?

1064


What is the default page size of buffer pools?

1120


How do you concatenate the firstname and lastname from emp table to give a complete name?

1073


What is the maximum number of columns in a db2 table?

1279


Which component is responsible for db2 startup and shutdown?

1033


what is the responsibility of the construction superintendent

2140