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...

Compare and contrast TRUNCATE and DELETE for a table.

Answer Posted / santosh

Basically truncate is a DDL and Delete is DML. You can use
delete to remove rows depending on certain criteria and it
generated redo logs and can be rolled back before you
commit the transaction, Where as the truncate is used to
remove all the data in the table. Once you execute this
command u can not rollback this transaction.and commit is
not required for the truncate statement

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different authentication modes in sql server and how can you change authentication mode? : sql server DBA

1042


What are statistics, under what circumstances they go out of date, how do you update them?

2195


What are the operating modes in which database mirroring runs? : sql server DBA

1105


How do you troubleshoot errors in a sql server agent job? : sql server DBA

1048


What are the commands you'd issue to show the explain plan for "select * from dual"?

2186


how can you schedule a job in database?

1043


In which dictionary table or view would you look to determine at which time a snapshot or MVIEW last successfully refreshed?

2640


Typically, where is the conventional directory structure chosen for Oracle binaries to reside?

2565


In what script is "snap$" created? In what script is the "scott/tiger" schema created?

2397


Query processing is slow(eg select query)how will u solve that

7753


How would you go about verifying the network name that the local_listener is currently using?

3154


How do you open a cluster administrator? : sql server DBA

1029


What are the recovery models for a database? : sql server DBA

1064


What is the difference between dropping a database and taking a database offline? : sql server DBA

1012


how can a session indicate its interest in receiving alerts?

979