What is the diff between Truncate table / delete <table
name> purge

Answer Posted / papia

Truncate table removes all rows from the table and alos
releases the storage space and as it is a DDL statement so
no Rollback information is available
Delete statement also removes the row but does not release
the storage space
Truncate is faster than delete.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is a scheduled jobs or what is a scheduled tasks? : Sql dba

567


What are the conditions an underlying table must satisfy before a cursor can be used by a positioned update or delete statement? : Transact sql

549


Can we use the cursor's to create the collection in PL/SQL?

524


When should I use nosql database?

566


Why schema is used in sql?

521






What is dbo in sql?

551


Which is better stored procedure or query?

558


Can we insert data in view?

513


Why we use stored procedure instead of query?

546


What are the main features of cursor?

638


What is a system versioned table?

546


How do I remove all records from a table?

578


Explain the difference in execution of triggers and stored procedures?

581


What is lookup table in sql?

619


How do you respond to dementia behavior?

539