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

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

Explain dclgen.

1271


What is meant by union and union all?

1052


What type of database is db2?

1019


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

1154


What is the use of db2?

1114


What is the physical storage length of the data types date, time, and timestamp?

1138


What is rebind in db2?

1117


What is the difference between oracle and db2?

1173


Explain various types of locks in db2?

1205


How can you count the number of rows from a table tab?

1135


Who uses db2?

1112


What is the purpose of rollback and commit?

1282


How can we retrieve the total number of records in RPG & CLLE?

707


What is catalog database in db2?

1216


When reorg is used?

1182