Hello
I'm trying to avoid an 'infinite loop' when I use "with hold" i'm updating 24000 records.
I try to use this stored procedure, but don't work. The error message is
255: Not in transaction.
What's is the problem?
CREATE PROCEDURE foreach_ex()
define varExtremo_a char(40);
define varTecnologia char(10);
FOREACH cur1 FOR
SELECT extremo_a INTO varExtremo_a
FROM vunif_temp
WHERE Tecnologia = 'WLL'
IF varExtremo_a is null THEN
UPDATE vunif_temp
SET extremo_a = 'xx'
WHERE CURRENT OF cur1;
END IF
END FOREACH
END PROCEDURE;
An example can be readed in
http://www.dbcenter.cise.ufl.edu/tri...fm.html#125314