difference between truncate and delete ,drop?

Answer Posted / surendra

truncate

it deletes only the records from the table
it doesn't delete the structure of the table
we cannot rollback it
we cannot delete a particular record from the table
it is ddl

drop

it deletes the records as well as structure of the table too
we cannot rollback the records
we can flashback the table from the version 9x
it is ddl

delete

it deletes the only records which are we mention in the where clause or whole records
it is dml
we can rollback it

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of tables, private synonyms and public synonyms in Oracle?

587


Explain the use of grant option in imp command.

574


How to assign values to variables?

578


Will you be able to store pictures in the database?

633


How to define an oracle cursor variable?

563






Please explain compound trigger in oracle?

594


How to pass parameters to procedures?

553


What is the use of oracle?

547


What is an oracle table?

554


How to fetch the row which has the max value for a column?

538


What is oracle in java?

522


What is a private synonym?

1079


What is the difference between hot backup and cold backup in oracle?

520


How to define a cusotmer as a supplier in ORACLE R12

1726


Other than making use of the statspack utility, what would you check when you are monitoring or running a health check on an Oracle 8i or 9i database?

1505