by using cursors , we can access particular records from
the table based on some condition, i want to delete those
selected records, how can we write a query for this in the
program?

Answer Posted / satty

first declare cursor and select the records you wanted and
then use delete statement with where current of your cursor.
becoz it will help you to delete that particular record
which has been choosed.

if any thing wrong plz intimate

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you simulate the explain of an embedded sql statement in spufi/qmf?

635


How to find the maximum value in a column in the db2 database?

611


What is cursor in dbms?

593


What is a db2 table?

597


How to find the number of rows in a db2 table?

644






What are packages in db2?

597


What is dpf in db2?

666


What is a storage group (stogroup)?

778


What is the maximum No of rows per page?

627


How to take backup of table in db2?

601


What is runstats db2?

585


What is ibm db2 connect?

573


Hello All, We have requirment to Replace BMC Db2 Load product thru CA FAST LOADPlus product. Do anyone have JCL to for FAST LOADPLUS and what all are thing need to take in consideration.

2322


Mention the location where the output received from explain statement is stored.

628


How do I delete a table in database?

599