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

What is the difference between DELETE and TRUNCATE?

Answer Posted / manivasan.s

You cannot TRUNCATE a table that has any foreign key
constraints. You will have to remove the contraints,
TRUNCATE the table, and reapply the contraints.

You can DELETE any row that will not violate a constraint,
while leaving the foreign key or any other contraint in place.

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you think about pl/sql?

1110


Is sql dba a good career? : SQL DBA

1045


Why trigger is used in sql?

1015


What is java sql connection?

1116


What is a loop in sql?

1033


Mention what are the benefits of pl/sql packages?

1151


What are sql objects?

1125


what are the drivers in mysql? : Sql dba

1055


How do I sort a table in sql?

1080


Why do we need cursor in pl sql?

1187


what are the performance and scalability characteristics of mysql? : Sql dba

1032


What are the different sql commands?

1124


Why do we need a foreign key?

1164


What is nosql db?

1011


what are the maximum number of rows that can be constructed by inserting rows directly in value list? : Transact sql

999