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

write a query to delete similar records in different tables
with same structure

Answer Posted / radha sri seshu.kolla

while creating table and giving foreign key constraint give
the key word 'on delete cascade'.automatically when the
record in the master table is delated the relaeted record
in the detail table will also be deleted.

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to create the following trigger: before or after update trigger for each row?

1272


how to add a new column to an existing table in mysql? : Sql dba

1049


What port does sql server use?

1042


What are the features of pl sql?

1048


how to decrement dates by 1 in mysql? : Sql dba

1007


What is left join in postgresql?

1028


What is a native sql query?

1040


How many columns should be in an index?

950


How do I restart sql?

950


How does cross join work in sql?

1001


What does partition by mean in sql?

947


What are instead of triggers?

1028


What is embedded sql in db2?

995


How do I save a stored procedure?

992


What does rownum mean in sql?

1010