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

The in operator may be used if you know the exact value you want to return for at least one of the columns.

1105


Can you sum a count in sql?

985


How do I order by ascending in sql?

990


What is delete command in sql?

1089


What is a trigger word?

1003


What is difference between inner join and cross join?

953


Is like operator in sql case sensitive?

1000


What is restrict in sql?

1093


What are literals in sql server?

1140


how to create a new view in mysql? : Sql dba

924


how mysql optimizes distinct? : Sql dba

1058


Can ddl statements be used in pl/sql?

1122


Differentiate between syntax and runtime errors.

1167


What is type and rowtype in pl sql?

1008


Why is a trigger used?

926