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 last published in August 2007

Dig Deeper on Oracle database design and architecture

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.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close