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, TRUNCATE, and DROP?

Answer Posted / nashiinformaticssolutions

• DELETE:
o Deletes specific rows from a table.
o Can have a WHERE clause.
o DML command (can be rolled back).
• TRUNCATE:
o Deletes all rows from a table.
o Faster than DELETE (does not log individual row deletions).
o DDL command (cannot be rolled back).
• DROP:
o Removes a table entirely (schema + data).
o DDL command.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many sql statements are used?

961


How do I find duplicates in the same column?

997


What is the difference between sql and t sql?

964


Which tcp/ip port does sql server run on? How can it be changed? : Sql dba

931


What is the difference between left and left outer join?

892


Is sql an operating system?

961


What has stored procedures in sql?

992


Which sql most popular?

935


Which one is better subquery or joins?

1008


Explain mutating table error.

1130


What is the difference between execution of triggers and stored procedures?

1051


What is mutating error in pl sql?

962


What are literals in sql server?

1071


What is the purpose of the partition table?

1002


what is the difference between delete and truncate statement in sql? : Sql dba

1127