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 / vaneesh khurana

By the way, why to select a signle row using cursor then
delete, if you want to delete all the row mentioned in the
cursor search creteria, simply write a SQL query mentioning
delete where (matching search condition).

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dbrm? When it will be created?

599


What is a collection in db2?

584


Is db2 a mainframe?

588


What are the two types of logging in the db2 database? Explain them.

581


What is cursor with hold option in db2?

612






How to compare data between two tables in db2?

660


Mention data types used in db2 ?

679


What is database alias db2?

606


Which command is used to connect to a database in DB2 ? Give the Syntax.

602


Why db2 is called db2?

593


What is the connection string to connect to the DB2 Database ?

614


What is the default page size of buffer pools?

648


What is bind and rebind in db2?

649


What is coalesce in db2?

682


What is bind plan?

610