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

How do I optimize a query in db2?

0 Answers  


Name some fields from SQLCA.

2 Answers  


why should we bind the DB2 program . What if we did not BIND a BD2 program ??

9 Answers   Infosys, TCS, Xansa,


How do you select a row using indexes in db2?

0 Answers  


Shall i use this query to retrieve first 4 records, Select empno, sal from emptbl where empno < 5. like this can we fetch first 100 records?

3 Answers  


in db2, already 10 columns arie der, and i want to insert 11th column. what parameters u wil consider for insertion and how will u insert

1 Answers   TCS,


can any one give the list of some important sql abend codes which r frequently asked in interviews?

2 Answers  


What is a collection in db2?

0 Answers  


What is data manager?

0 Answers  


One program calling 5 subprograms, its a cobol db2 program, after precompilation how many plans and packages will created?

3 Answers  


When do you use the IMAGECOPY?

4 Answers  


How does coalesce work?

0 Answers  


Categories