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 Drop and Truncate

Answer Posted / tamilarasan sivaraj

DROP:It is used to delete the all structure of the db and
also we cant rollback.
EXAMPLE:Drop table student;
It will show error.No table found.

TRUNCATE:It is used to delete the table of the data and
structure remains,we can able to rollback.
EXAMPLE:truncate table student;

No records found;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an example of a primary key?

1037


What is an index in sql?

1066


How do you delete duplicate rows in sql server?

1002


What is the fastest way to permanently delete a 1 million row table named customers?

1325


Explain atomicity?

1124


How many replicas are maintained for each sql azure db?

124


How many types of local tables are there in sql server?

976


What do you understand by sql server agent?

1026


What is difference between join and natural join?

1057


Explain the creation and execution of a user-defined function in the sql server?

1111


Define synonym?

1222


What is a trigger? Why we need it?

1053


Explain “not null constraint” in sql server?

1089


How do I find the query plan in sql server?

1015


Explain the commands in sql server?

1095