SyntaxFix
Write A Post
Hire A Developer
Questions
not so elegant but you dont need to declare any variable:
for k in (select max(1) from table where 1 = 1) loop update x where column = value; end loop;