diff between DELETE and TRUNCATE?.

Answer Posted / manoj.oracle

Delete command is a dml command
truncate command is a ddl command

Delete command has a where clause.
truncate hasn't where clause.

Delete doesn't release memory space(means we can rollback
the deleted rows)
truncate releases memory space(means we can't rollback)

By using synonym we can delete a rows(Delete command).
By using synonym we can't delete a rows(Truncate command).



Is This Answer Correct ?    29 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Please explain me all types of Data models. Also give me the details if each model can have other name.for example:schematic data model is also known as conceptual data model and entity relation data model.

1875


Is primary key indexed by default in oracle?

559


What are the uses of Database Trigger ?

1120


How do I uninstall oracle 11g?

572


What is the data pump export utility?

654






How many types of segments in Oracle?

539


How to get last row id?

565


How to create a stored program unit?

587


Why do you use stored procedures and state some of its disadvantages?

573


What is the difference difference between $ORACLE_HOME and $ORACLE_BASE.

659


various types of hints and their usage

2137


How to connect to oracle using service name instead of sid?

560


What is control file used for?

611


what is the use of triggers in Java program? I mean where do we use triggers in Java programming?

1702


How do I manually create a database in oracle?

550