What is the difference between DELETE and TRUNCATE?

Answer Posted / raam

Delete command will remove the data values ( all the
records of table) and space and table structure will be
ramain. We cannot free the space and remove the table
structure using Delete command.
Truncate command will free the memory and removes table
structure from data dictionary.

ramumcato@yahoo.com

Is This Answer Correct ?    9 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you know if a relationship is 2nf?

525


What is scalar and vector?

536


Which is better cte or subquery?

548


how to get help information from the server? : Sql dba

530


What is the left table in sql?

523






What is sql injection vulnerability?

500


Can triggers stop a dml statement from executing on a table?

622


how do you know if your mysql server is alive? : Sql dba

604


Why do we need a foreign key?

555


How do you create a db file?

528


what are ddl statements in mysql? : Sql dba

581


What are the types of subqueries?

579


What is graph sql?

530


What is the sql case statement?

583


what is primary key? : Sql dba

514