what is the difference between delete and truncate?

Answer Posted / venkatesh kumar.s

Truncate:The truncate command deletes the rows in the
table,but not the structure of the table.
Cmd-truncate table tablename;
Drop:The drop command will drop the table from the databases.
Cmd-drop table tablename;
Delete:The delete cmd removes tuples from a relation.It
includes where clause to select the tuples to be deleted.
Cmd-delete from tablenmae where attribute-name="value" or value;

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is database definition (dbd)?

482


Explain the syntax of named procedure?

542


How to select a random record from a table?

542


What are partitions in database?

496


What is a database management system and give examples?

464






What do you mean by starvation in dbms?

604


What are indexes? Mention the differences between the clustered and non-clustered index?

518


Is google scholar a database?

507


Is there some bulk load or other way to import a lot of data fast?

453


What are the various normalizations in database?

572


What are the different types of database?

498


Explain what are super servers?

533


Have you written applications to retrieve stored images in a table?

608


What do you understand by join?

541


Explain what are triggers and rules?

517