Page 1 of 1

Truncate table then insert rows and Clear table then insert

Posted: Fri Oct 23, 2009 10:53 am
by dodda
Hi All,

Can anyone provide some information about Truncate table then insert rows and Clear table then insert rows in oracle stage.

And kindly let me know will give better performance if the target table has more number of rows.

I appreciate your help.

Posted: Fri Oct 23, 2009 11:01 am
by ray.wurlod
Truncate issues a TRUNCATE TABLE statement, which is non-transactional. Clear (probably) issues a DELETE command, which will be logged in the transaction log. As a general rule truncate is faster.

Posted: Fri Oct 23, 2009 11:19 am
by chulett
ray.wurlod wrote:Clear (probably) issues a DELETE command, which will be logged in the transaction log.
Right, it does.

Posted: Sat Oct 24, 2009 8:23 am
by dodda
Thanks for the information..