Q

"Delete from emp" without "where" condition

What's happening in the redo logs when I do a "delete from emp;" without a "where" condition?

I'd like to know what's happening in the redo logs when I do a "delete from emp;" without a "where" condition? Do all the deleted lines get logged or only the delete order or both?
If you were to mine the redo logs for the DELETE statement, you would see that a multi-row DELETE statement is logged as individual DELETE operations. These individual operations will have "WHERE ROWID='......'" appended to them. Oracle deletes the specific rows by figuring out which ROWID points to that row. When you delete more than one row in a single DELETE statement, Oracle still breaks this down in to mutiple DELETE statements, one for each row.
This was first published in April 2007

Dig Deeper

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close