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 / harsha

The first answer is correct. It has a logic to select only
ODD rows(look at the two fetch statements).

Another logic to select only ODD rows.
SELECT SAL FROM EMP WHERE MOD(SAL,2)=1

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of rollback and commit?

1108


Mention data types used in db2 ?

1116


Outputs of explain are with matchcols = 0. What does this signify?

1004


Can we update view in db2?

954


What is isolation level in db2?

952


What is the max length of sqlca?

1170


What is dbrm?

1053


What is the physical storage length of timestamp data type?

1035


Discuss about db2 bind?

1056


What is the physical storage length of the data types date, time, and timestamp?

1053


How can record locking be achieved in those DB2 versions which do not support it?

1033


What is role in db2?

1052


What happens in bind step in a db2 program?

933


How to find the number of rows in db2 tables?

1011


What is sqlca?

1009