How in Windows ENV do I create a script to perform roughly 1100 delete statements which are the return of an ODBC MS ACCESS query.

I have a file that I've obtained from exporting the results of a query that shows I have 1100 bogus records in my database. (e.g. refference # 123456)
However each due to foreign key relations, I have 10 tables that I need to probe due to the reference number may have a child process entry.

So I have a file named refid_file with 1100 records.
123456
789456
145678
234567
345678

And I have 10 tables I have to delete from
delete from table a where refid=(entry from refid_file);
delete from table b where refid=(entry from refid_file);
..... until table #10

Then I need to do this for all 1100...

Anyone with help is greatly appreciated. On a unix box I would write a k-shell script to take care of this..

Running ORACLE 10G on Windows 2003 Server; access it by web-browser isql-plus.