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

can we update the table by using cursors can anyone post
the query?

Answer Posted / siri

suppose we want update ename in emp table using cursor....

declare crsorname cursor for
select * from emp
where dept='d005'
for update of ename....


upate emp
set ename=:ename
where current of cursor

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you do the explain of a dynamic sql statement?

1069


What is drop table?

1012


What do you mean by rollback?

991


What is a page in db2?

1027


What is copy pending status in db2?

1127


How to create db2 table in mainframe?

1155


Which component is used to execute the sql statements?

1098


My sql statement select avg(salary) from emp yields inaccurate results. Why?

1095


What do you mean by between and in? Is between inclusive of specified range values?

1092


Define check constraint.

1080


What is node in db2?

1046


What is commit in db2?

1059


Explain the function done by data manager?

1281


What is clone table?

1047


What is a db2 package?

1060