I have a table in which I initially use an insert statement to populate all of the rows but only some of the fields in the table. I then want to update the rest of the fields using a separate update.
The way I am doing this is to run a series of Select Into statements to fill variables, then run one Update statement to fill out the rest of the data in each row. This is being done one record at a time while looping through a cursor.
The problem I am having is when there is no data returned by any one of the Select Into statements, I get a NO_DATA_FOUND error which throws me out of my loop and the processing stops.
I am looking for a way to just ignore the error and move on to the next statement. It is perfectly OK for there to be no data for any of the Select Into statements, there isn't always going to be data for every field I am updating.
Thanks in advance for any ideas.
Gerry
The way I am doing this is to run a series of Select Into statements to fill variables, then run one Update statement to fill out the rest of the data in each row. This is being done one record at a time while looping through a cursor.
The problem I am having is when there is no data returned by any one of the Select Into statements, I get a NO_DATA_FOUND error which throws me out of my loop and the processing stops.
I am looking for a way to just ignore the error and move on to the next statement. It is perfectly OK for there to be no data for any of the Select Into statements, there isn't always going to be data for every field I am updating.
Thanks in advance for any ideas.
Gerry