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

suppose in my table 10 rows are there , i want to update odd
rows salary as 90000 ? how u do it ? any one help me ? what
do we use here cursor-fetch or normal sql ?

Answer Posted / vaneeshkhurana

Basically we can create a structure where first fetch then
update the fetch 2 times and update once again fetch 2 times
and update once again fetch 2 times and update once... and
keep on fetching 2 times and updating it once till table
code 100 comes.

This will update only the odd rows.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List out the buffer pools in db2

1068


What is the syntax for creating a table in the db2 database?

1096


What is the use of commit in db2?

1065


How to rename a table in DB2 ?

1084


What do you mean by storage group (stogroup)?

1032


Is db2 a database?

955


What is bind and rebind in db2?

1129


What does db2 mean?

1004


What is the cobol picture clause of the db2 data types date, time, timestamp?

1052


What does sqlcabc has?

1043


What is explain plan in db2?

980


What is cloudant database?

1090


List out the three types of page locks that can be held.

1144


Which component is responsible for db2 startup and shutdown?

1031


Mention the various locks that are available in db2.

1031