Delete , Truncate , Drop Transaction in Oracle

DELETE is DML operation used to remove row from Table. we can commit or rollback after delete .

TRUNCATE is DDL operation used to remove all row from Table .we can`t rollback this operation

DELETE is slower, TRUNCATE is faster. Why?

DELETE must read the records, check constraints, update the block, update indexes, and generate redo/undo. All of that takes time.

TRUNCATE simply adjusts a pointer in the database for the table (the High Water Mark) and poof! the data is gone.

DROP is DDL operation used to delete table from DB. We can`t rollback this operation.



要查看或添加评论,请登录

Mohamed Fayez的更多文章

  • How Bounded Task Flow Handle transaction?

    How Bounded Task Flow Handle transaction?

    1) No Controller Transaction. Called task flow does not participate any transaction Management.

  • ADF Important Questions?

    ADF Important Questions?

    How to create new default department when creating new location? what is the use of prepareForDML() method in entity…

    1 条评论
  • Oracle ADF Questions ?

    Oracle ADF Questions ?

    Why ADF ? Oracle ADF(Application Development Framework) is state of the art technology to rapidly build enterprise…

    2 条评论
  • Question in ADF?

    Question in ADF?

    what is the use of parentAction in TaskFlow in Oracle ADF ?

    1 条评论

社区洞察

其他会员也浏览了