SyntaxFix
Write A Post
Hire A Developer
Questions
something like this?
DECLARE maxval, val, @ind INT; SELECT MAX(ID) as maxval FROM table; while (ind <= maxval ) DO select `value` as val from `table` where `ID`=ind; CALL fn(val); SET ind = ind+1; end while;