ORCALE 8i / SQLPLUS
I have two tables, One and Two
Table One:
Main table that consists of three columns A, B, C, & D.
Columns A & B will always have data while C & D do not.
After insert to One, a trigger executes and sends a copy of the row to another table called Two. Table Two will then be updated for Column C & D at a point down the road. This will happen for several records created within a days time.
After C & D are updated, I then want to update table oNE with the updated information. The updates will have to correspond to the values in Column A & B. I cannot just truncate and update table A due to record addition is an ongoing process.
I understand the method of cursors and updates as to changing the data with a Set = 'change', but how do I do something similar in order to update the corresponding rows with the column data? There will be multiple rows of data updated. An example would be great, if any one has an idea. I have read considerably on cursors and procedures, but cannot seem to implement it. I just do not get it.
Thanks,
John
I have two tables, One and Two
Table One:
Main table that consists of three columns A, B, C, & D.
Columns A & B will always have data while C & D do not.
After insert to One, a trigger executes and sends a copy of the row to another table called Two. Table Two will then be updated for Column C & D at a point down the road. This will happen for several records created within a days time.
After C & D are updated, I then want to update table oNE with the updated information. The updates will have to correspond to the values in Column A & B. I cannot just truncate and update table A due to record addition is an ongoing process.
I understand the method of cursors and updates as to changing the data with a Set = 'change', but how do I do something similar in order to update the corresponding rows with the column data? There will be multiple rows of data updated. An example would be great, if any one has an idea. I have read considerably on cursors and procedures, but cannot seem to implement it. I just do not get it.
Thanks,
John