|
-
 Originally Posted by CoolGuyz
Query is -
DELETE FROM ECOOVERLAYEVALUATION
WHERE creationdate < sysdate - 2;
COMMIT;
This table "ECOOVERLAYEVALUATION" in turn connects to other tables and deletes records from them.
I can not use Truncate as I do want to retain data for past two days.
So you are cascade deleting? I see, you are adding pieces of information one-at-a-time, some people would get crazy about that 
What else should we know?
By the way, are you sure your predicate is no like: ... < trunc(sysdate - 2) ?
Pablo (Paul) Berzukov
Author of Understanding Database Administration available at amazon and other bookstores.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|