Hi,
i want to realize a construct in MS SQL that would look like this in Oracles PL/SQL:
declare
asdf number;
begin
for r in (select * from xyz) loop
insert into abc (column1, column2, column3)
values (r.asdf, r.vcxvc, r.dffgdfg) returning id into asdf;
update xyz set column10 = asdf where ID = r.ID;
end loop;
end;
Any idea how to realize this would be helpful.
Thanks in advance