Compare and contrast TRUNCATE and DELETE for a table.

Answer Posted / amsu

Truncate is a DDL and delete is a DML command. Once you
truncate a table you cannot rollback where as you can
rollback from the delete command. When you truncate a
table it release the space and it resets the highwater
mark. Delete won't release the space and it won't resets
the highwater mark.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of database compression introduced in sql server 2008? : sql server DBA

810


how to restore files with rman?

1960


How many files can a database contain in sql server?how many types of data files exists in sql server? How many of those files can exist for a single database? : sql server DBA

900


what is the diffrence between core dba and apps dba?

2314


how can you schedule a job in database?

815


What is dcl? : sql server DBA

893


what is the last version,the release date of that version and fix pack of ibm db2 udb?

1705


when we login sql editor using username and password then it says this error "could not resolve service name" then what can we do at client side.( here thing is tnsnames.ora file is ok till yesterday and worked well, but now it giving error.

1431


how can you connect from 10g user to 11g user??

1908


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

2422


i have 10gp file.now i need store in database..but database have only 7gb memory only..how do u store the file ?

1850


What do the 9i dbms_standard.sql_txt() and dbms_standard.sql_text() procedures do?

2198


You have 4 instances running on the same UNIX box. How can you determine which shared memory and semaphores are associated with which instance?

4167


If you are given access to a sql server, how do you find if the sql instance is a named instance or a default instance? : sql server DBA

762


how can you generate profile of pl/sql applications to identify performance bottlenecks?

813