Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Oracle Tools > dynamic delete ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 2670 of 2780
Post > Topic >>

dynamic delete script based on columns

by ralphbuetikofer@[EMAIL PROTECTED] Nov 20, 2007 at 03:55 AM

hi all,

i got a big problem and hope, somebody can help. i have to create a
dynamic delete script which has to run once a day. the script should
find all tables containing a specific column (DEL_YN). then it should
physically delete all records in this tables with value 'Y' in that
column which indicates that the row has been 'deleted' by a user.

i know i can get a cursor with all table-names by the sys.all_objects
joining with the sys.all_tab_columns to determine if the specific
column exists in the table.
and i do know i can use this cursor to delete the records in all the
tables.

what i do not know is how can i assure that the delete script runs
through the tables in the right order (i.e. dependencies,
constraints......)??

can anybody help?

thanks in advance!

kind regards,
bueti
 




 2 Posts in Topic:
dynamic delete script based on columns
ralphbuetikofer@[EMAIL PR  2007-11-20 03:55:09 
Re: dynamic delete script based on columns
DA Morgan <damorgan@[E  2007-11-20 06:05:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Thu Jul 24 2:23:46 CDT 2008.