Ask the Expert

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. If possible explain.

    Requires Free Membership to View

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

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
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
Sort by: OldestNewest

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: