Hi,
The problem i will present is a lock problem.
I have Store procedures that make a Foreach Select to get information an for each row return will performe several update, inserts, and more select depending on the information that was return by the First FOREACH.
The problem is that when you have multiThread these foreach will coul lock many rows during may time.
To resolve the problem i tried to:
1- put a commit inside FOREACH (Didn't work because the cursor will ends)
2- I try to insert the FOREACH SELECT information into a collection array an then iterate tha collection. But to do that i need a FOREACH iterate the collection and then the COMMIT problem will exists.
Anyone have any ideia?
FOREACH
SELECT col1, col2,col,3 FROM Tab1, Tab2
INTO var1,var2,var3....
WHERE ......
END FOREACh