I am trying to call a stored procedure within a do-while loop in a main stored procedure.
The problem is that internal stored procedure is getting executed only once and the code exits from the internal stored procedure rather than executing in a loop.
Could you please help mein identifying the reason for the above problem.
My code looks like this
WHILE(CC_MAX<=CC_MIN)
DO
SELECT V1 INTO V2 FROM DB.TBL WHERE PI = CC_MIN
CALL DB.SP(DB,TB,V1);
CC_MIN = CC_MAX +1;
END WHILE
Thanks in advance!!!
NIAR
Forums: