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

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

1032


How do I delete a table in db2?

1006


What are the various data types available in db2?

1011


Which is faster delete or truncate?

1068


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

1036


What is nvl in db2?

1035


What language is db2 written in?

977


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

1008


How would you find out the total number of rows in a db2 table?

985


what is a corelated subquerry?

1062


What are catalog tables in db2?

979


What is package in db2 mainframe?

914


What is the maximum size of varchar data type in db2?

1062


What is consistency token in db2?

1060


How do I optimize a query in db2?

1035