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 Difference Between delete and Truncate?

Answer Posted / rajesh

Delete is DML statement which can delete data from table
which needs to be commited afterwards. But it doesn't free
memory area occupied by the data in the table.Where clause
can be used.

Truncate is DDL statement which is auto commit. It not only
deletes all data from table, but it also frees the memory
area occupied the data in the table. where clause is not
permitted. Works faster than delete statement

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is sql?

1119


what are wild cards used in database for pattern matching ? : Sql dba

1144


What is equi join in sql?

1077


Why having clause is used in sql?

979


Explain dml and ddl?

996


How do I order by ascending in sql?

1024


Explain the commit statement.

1160


How many types of cursors are available in pl/sql?

1109


Does inner join remove duplicates?

943


Can we join more than 2 tables in sql?

1022


What is normalization in sql?

1016


when MSQL8.0 is in market

2078


What is an implicit commit?

1058


What is nvarchar in sql?

924


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

1002