Q

Can I mark a record as deleted in Oracle?

Is it possible to mark a record as deleted? I have to reuse the deleted record.

Is it possible to mark a record as deleted? I have to reuse the deleted record. If possible explain.
Once the record is deleted with the DELETE command, you cannot easily reuse the record. If you need to reuse this data, then it should not be deleted. The trick typically employed here is to add another column to the table called ACTIVE. This column will contain a "Y" (yes) if this is an active record or an "N" (no) if the record is no longer active. However, the record still exists in the table. It is not deleted.
This was first published in August 2007

Dig deeper on Oracle database design and architecture

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

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:

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close