FOR v_row AS SELECT label FROM component
DO
update gateway_authentication set serial_number='yoyo';
END FOR;
How to write a loop query with DB2 ?
It is really difficult to have an example that works on the web !!!
thanks a lot for an answer
Antonio
BEGIN ATOMIC
FOR v_row AS SELECT label FROM component
DO
update gateway_authentication set serial_number='yoyo';
END FOR;
END
Cheers
Serge
PS: I'm assuming this is a nonsense example.. so I'll resist tuning it
etc....
--
Serge Rielau
SQL Architect DB2 for LUW
IBM Toronto Lab
Thanks a lot for the advice
I'm going to follow this and test
Antonio