Autocommit in truncate table
I gave the following statements in the sql prompt
SQL > update tableA set columnA=’XXXXX’ ;
SQL > truncate table tableB;
SQL > rollback;
I know that, tableB cannot be rollbacked. But I want to rollback the update statement given in the tableA. Due to the auto commit in the truncate statement, the first update statement also committed automatically.
Can any one explain, why I am not able to rollback the first update statement? Is there is any oracle document saying that, all the transaction before the truncate statement are automatically committed?
Yes its in the docs, truncate does an implicit commit, so any pending transactions will be commited
Last edited by davey23uk; 11-18-2004 at 07:32 AM.
luckily you tested.
go through the docs on this basics and test them.
(not on the live databases!!! too dangerous.
Click Here to Expand Forum to Full Width