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 a Nested Loop join?

1789


how to use select statement as formal parameter in procedure specification?(someone said that using string) ex:-procedure(a in number,select ename from emp ) i am asking syntax like this?

1731


What is the difference between sharding and partitioning?

724


What is the parameter mode that can be passed to a procedure?

797


What is oracle in java?

729


What is the difference between substr and instr?

715


In not less than 100 words what's the main difference between Rolap and Molap in ORACLE ?

2007


Can the query output be sorted by multiple columns in oracle?

748


What is backup in Oracle?

766


Explain view?

797


How to check the oracle tns settings?

787


What happens if you set the sga too low in oracle?

790


How does one get the view definition of fixed views/tables?

794


What is a view and how is it different from a table?

731


Explain how you would restore a database using RMAN to Point in Time?

1878