Is it possible to update a table using some kind of for each statement??
I would like to create a column that contains the results from a parsing procedure that depends on another column in the same table. Something like the following pseudocode:
FOR EACH Row in tableA
index1 = InStr(1, file, "/")
index2 = Instr((index1 + 1), file, ".")
difference = index2-index1-1
Update tableA Set parse = Mid(file, index1+1, difference)
End FOR EACH
The object of the code would be to parse every file entry in the table and update the same table by inserting the parsed data into another tuple.
I would like to create a column that contains the results from a parsing procedure that depends on another column in the same table. Something like the following pseudocode:
FOR EACH Row in tableA
index1 = InStr(1, file, "/")
index2 = Instr((index1 + 1), file, ".")
difference = index2-index1-1
Update tableA Set parse = Mid(file, index1+1, difference)
End FOR EACH
The object of the code would be to parse every file entry in the table and update the same table by inserting the parsed data into another tuple.