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

List out the buffer pools in db2

622


What is the clustering index in the db2 database?

578


Mention a credible reason why select* is never given preference in an sql program that has been embedded.

711


What is the latest version of ibm db2?

733


Mention the different locking levels that are available in db2.

635






How do you select a row using indexes in db2?

638


What does reorg do in db2?

572


What is null indicator in cobol db2?

576


Where do you specify them?

673


What is the difference between "db2ilist" and "db2 get instance" commands in DB2 Database Server?

702


How to run db2 command in windows?

637


What is an instance in db2?

561


What does db2 stand for?

594


What is syscat in db2?

571


Highlight all the advantages that are attached to a package.

621