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 does varchar include?

959


What is sql profiler in oracle?

1102


What is dml statement?

963


Is time a data type in sql?

915


What is the difference between sql, mysql and sql server?

1116


Why do we need a foreign key?

1110


What are the types of keys?

1005


Why do we need cursor in pl sql?

1142


Why do we use joins in sql?

978


How do you create a db file?

1022


Is big data nosql?

957


How do you break a loop in pl sql?

1057


What is the left table in sql?

976


Differentiate pl/sql and sql?

1071


how would you enter characters as hex numbers? : Sql dba

994