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 does the t-sql command ident_incr does? : Transact sql

591


How do you optimize a stored procedure query?

561


What is scalar function?

560


What are the rules to be applied to nulls whilst doing comparisons?

746


When is the explicit cursor used ?

584






What does fetching a cursor do?

610


How many types of cursors supported in pl/sql?

582


What are all the ddl commands?

619


What view means?

547


The select into statement is most often used to create backup copies of tables or for archiving records?

554


What is union?

645


What is file based approach?

483


What is primary key and unique key?

536


what are the non-standard sql commands supported by 'mysql'? : Sql dba

569


Can you have a foreign key without a primary key?

507