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 a checkpoint in dbms?

830


When we will denormalize data?

714


State some commands of ddl in dbms?

717


What do you mean by cardinality and its types?

681


How do you link a spreadsheet to a website?

652


How can I access my database remotely?

658


What is a file in a database?

627


How is the pattern matching done in the sql?

901


Which software is best for database?

639


What is the purpose of sql?

655


What are the basic components of notification services?

759


How do you call a stored procedure from jdbc?

688


How do you organize a database?

691


Explain what is a deadlock and mention how it can be resolved?

637


List few disadvantages of file processing system.

665