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...


Is it possible to update a primary key value? If not, what
is the error code given? If yes, can more than 1 primary
key column be updated at a time?

Answers were Sorted based on User's Feedback



Is it possible to update a primary key value? If not, what is the error code given? If yes, can mo..

Answer / guest

Primary key value can be updated as well provided the value
you update it with identifies it uniquely.

Is This Answer Correct ?    28 Yes 4 No

Is it possible to update a primary key value? If not, what is the error code given? If yes, can mo..

Answer / keshireddy

further, multiple primary keys can be updated at time. Only
condition is that value should be unquie. else sql code -803

Is This Answer Correct ?    18 Yes 0 No

Is it possible to update a primary key value? If not, what is the error code given? If yes, can mo..

Answer / guest

Ans 3 is correct. If the key already present, while
updating it will show the sql code as = -803.

Is This Answer Correct ?    12 Yes 1 No

Is it possible to update a primary key value? If not, what is the error code given? If yes, can mo..

Answer / guest

also remember, you cannot update a primary key when it has
matching foreign key values.

Is This Answer Correct ?    8 Yes 0 No

Is it possible to update a primary key value? If not, what is the error code given? If yes, can mo..

Answer / haribabu

yes, it is possible, move 'value' to ws-eno. Here ws-eno is
primary-key.

Is This Answer Correct ?    1 Yes 1 No

Is it possible to update a primary key value? If not, what is the error code given? If yes, can mo..

Answer / deepak

First u will need to drop the index and then make the
required changes to PK and later again create the
index,Make sure u have all the conditing to for PK fine.

Is This Answer Correct ?    1 Yes 1 No

Is it possible to update a primary key value? If not, what is the error code given? If yes, can mo..

Answer / priya

If a primary key column cannot be updated, what is the
error code given when an attempt is made to update it
through a SQL query in a COBOL program?

Is This Answer Correct ?    3 Yes 5 No

Is it possible to update a primary key value? If not, what is the error code given? If yes, can mo..

Answer / sujeesh

Primary key column cannot be updated,because it is used as
the key field to find out a row uniquely.

Is This Answer Correct ?    17 Yes 22 No

Post New Answer

More DB2 Interview Questions

What is the max length of sqlca?

0 Answers  


How do I import data from excel to db2?

0 Answers  


Cursors can be declared in both working-storage & procedure division, agreed. But is there any difference? If could you please suggest what is the difference

0 Answers  


what will be the output of the below given query, if no matching records are found : (a.) 0 (b.) null (c.) error select Avg(salary) from TableA where Deptno = 'insurance'

10 Answers   Amdocs,


How do I import a csv file into db2?

0 Answers  


What is PRIME TABLE and what are the uses of it

1 Answers  


what is difference between Plan and Package

1 Answers   Syntel,


How to solved 818 error

4 Answers   Keane India Ltd, Wipro,


What is a synonym? How is it used?

2 Answers  


What is the use of runstats in db2?

0 Answers  


What is the COBOL picture clause for a DB2 column defined as DECIMAL(11,2)?

5 Answers   Emsang,


List out the buffer pools in db2

0 Answers  


Categories