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

I have 1000 rows in a db2 table.I want to update first 100
records,How do I do it?

Answer Posted / ananth

Declare a cursor like this in the application program
exec sql
Declare empcur cursor with hold for
select empno,empname from emp
for update of empsal
fetch first 100 rows only
end-exec.
this query will retrieve the first 100 rows and the cursor
is positiond at the first row in the resultent table.

Is This Answer Correct ?    23 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dbrm? What it contains?

1109


What does db2 mean?

954


Discuss about db2 bind?

1048


Define check constraint.

1025


What is bind package and plan in db2?

1004


What does a deadlock mean in DB2?

1094


How to run db2 command in windows?

1135


How can you classify the locks in db2?

1032


What is role in db2?

1040


How do I add a column to a table in db2?

1048


List out the data types available.

1080


How do we specify index to include or not during bind process.

2069


What is an instance in db2?

982


Explain how can you do the explain of a dynamic sql statement?

1062


What is the information associated with sysibm.syslinks table?

1055