I have to update a field in a table if it meets certain criteria. I have 21700 UPDATE statements since the field_name1 and field_name2 are different for each one. Is it possible to have all of these UPDATE statements in one text file and run it from the command line. What do you type on the command line if this is possible?
Text file is named "update_field". Examples of the statements in the file.
UPDATE table_name SET field_name='Y' WHERE field_name1='0988' and field_name2=7950;
UPDATE table_name SET field_name='Y' WHERE field_name1='1055' and field_name2=80010;
Thanks for your help!!!
Text file is named "update_field". Examples of the statements in the file.
UPDATE table_name SET field_name='Y' WHERE field_name1='0988' and field_name2=7950;
UPDATE table_name SET field_name='Y' WHERE field_name1='1055' and field_name2=80010;
Thanks for your help!!!