the table is a temp table that has the fields that are common across all of the rows coming in. (REC1 to RECZ above). the common identifier for REC1 to RECZ only appears on REC1, so i want to update the rec2, rec3, rec4 rows with the value in DATAX, which only appears in REC1.
I was also trying to show that the value needs to be reset when the program encounters a RECZ, so that a new value is applied for the next group.
How do I read the value from the database into a variable using DBI?