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

hey friends, What are the steps I can do to transfer the database from Microsoft Access 2003 to oracle10g (or SQL) Best regards

1562


Why do we need oracle client?

509


Why cursor variables are easier to use than cursors?

570


what are the advantages of running a database in archive log mode?

1731


Give the various exception types.

543






Explain an index segment?

640


How to install oracle odbc drivers?

623


How many anonymous blocks can be defined?

584


Explain an index?

656


How to insert a record into a table?

638


Why should I use oracle database?

569


Explain compound trigger in oracle?

546


How many categories of data types?

571


How view is different from a table?

553


Assuming that you are an End User How to find that in the payment Batch some of the Invoice was  Missing To pay How to find That??

1268