What is the difference between DELETE and TRUNCATE?

Answer Posted / babloo

when truncate command is issued, all the rows from the
table are deleted and the memory space occupied by the
table in the tablespace is also released whereas when
delete command is issued, only all the rows are deleted
fronm the table

Is This Answer Correct ?    28 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to do backup entire database? : Transact sql

614


What is online transaction processing (oltp)?

600


How to create your own reports in sql developer?

540


Why we use pl sql?

529


How do I save a stored procedure?

526






What is mutating error in pl sql?

549


What is right join in sql?

553


How to test for null values?

606


What are expressions?

563


How do I create a sql script?

542


how to show all tables with 'mysql'? : Sql dba

610


What do you understand by pl/sql packages?

570


How many tables can a sql database have?

533


Can we update views in sql?

535


ERROR:Insert or update on table"accnt" violates foreign key constraints "acct_to_curr_symbol" DETAILS:KEY(accnt_curr_id)(-2)is not present in the table "curr_symbol" ......solve The Problem..

2006