Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Oracle mass update script request.by dbmathis (Scribe) |
on Jul 28, 2008 at 01:48 UTC ( [id://700438]=perlquestion: print w/replies, xml ) | Need Help?? |
dbmathis has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I have been given a critical task of updating 45000 records on sensitive oracle database and although it is a simple update, I am not to familiar with writing update scripts in perl. I normally just do selects and then do data analysis I am looking for a full script example using DBI that will update the records and keep a log of everything that gets updated. My update statement is the following: And the 45000 emp_ids exist in a flat file in the following format which is an emp_id per line.
I am sure its as easy as just loooping through the file one emp_id at a time and then plugging the emp_id into the update statement and running it, however I want to learn how to do this the right way at the beginning from the pros.
After all this is over, all that will really have mattered is how we treated each other.
Back to
Seekers of Perl Wisdom
|
|